Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Essbase CDF to replace a member/string with another string/member and return

amith.madisettyFeb 19 2016 — edited Mar 3 2016

Hi All,

Am trying to get through CDF function that replaces string that is parameter to it with another string and return it to the rule.

the java code i tried is

import java.io.*;

public class ReplaceString{

   public static void main(String[] args){

   String str=args[0];

    replace(str);  

   }

    static String replace(String str)

        {

         String str1 = str.replace("CC_AA_INT","CC_BB_INT");

     return str1;

   }

}

I dont know how we call a method without a object.

Could someone guide me on this please.. If i have test this independently as a java program , how do i execute it incase if i dnt have main method ?

Am sure i can get someone help, becasue of why this forum has become very famous.

Thanks

Amith

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 31 2016
Added on Feb 19 2016
8 comments
1,961 views