cancel
Showing results for 
Search instead for 
Did you mean: 

Java code equivalent to removeContext node function.

former_member201264
Active Contributor
0 Kudos

Hi All,

I have seen some months ago about java codes for UDF for all Node Functions.

In my case i need Java code equivalent to removeContext node function.

could you please share the concept or link to the UDFs.

Regards,

Sree

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

I don't know the reason for this but you don't even need to use the "remove context" node function for this. Simply right click on the field to set the context.

However below is the code for your reference.

Execution type should be : All values of queue

ArrayList<String> list = new ArrayList<String>();

for( int i=0;i<var1.length;i++)

{

if(!(var1[i].equals(ResultList.CC))){

list.add(var1[i]);

}

}

for( int j=0;j<list.size();j++){

result.addValue(list.get(j));

}

former_member201264
Active Contributor
0 Kudos

Hi Harish,

Thank you for your immediate reply.

I have got the required link as well as under:

http://scn.sap.com/docs/DOC-63651

Regards,

Sree.

Answers (0)