cancel
Showing results for 
Search instead for 
Did you mean: 

UDF to Concatenate the Child nodes from Parent Node

Former Member
0 Kudos

Hi ,

In the following code when I executed its giving the below error

Code:

//Write your code here

StringBuffer message = new StringBuffer();

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

{

if (!(a.equalsIgnoreCase(ResultList.CC)))

{

message.append(a + " ");

}

}

result.addValue(message.toString());

Error:

cannot resolve symbol symbol : method equalsIgnoreCase (java.lang.String) location: class java.lang.String[] if (!(a.equalsIgnoreCase(ResultList.CC)))

My Scenario is similar to this one where I

RootNode 0..unbounded

ChildNode 0..1

This root node will be repeated mutiple times on source and target and I have to map to field for all the occurences of childNode into one element.

Thanks in advance...

Accepted Solutions (1)

Accepted Solutions (1)

VijayKonam
Active Contributor
0 Kudos

> //Write your code here

> StringBuffer message = new StringBuffer();

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

> {

> if (!(a[<i>].equalsIgnoreCase(ResultList.CC)))

> {

> message.append(a [[ i ]] + " ");

> }

> }

> result.addValue(message.toString());

I believe you must use a [ [ i ] ] instead of a as shown above..!!

VJ

Answers (0)