cancel
Showing results for 
Search instead for 
Did you mean: 

Merging values of Display Queue out and passing it to target node.

ramiz_sipai
Explorer
0 Kudos

Hi All,

In my final stage of mapping I am can see my values in Display Queue out like :

Suppress

Value1

Value2

Value3

...

But, I want all these values in single target node only.

Eg. Target node = Value1Value2Value3

Can anybody please let me know how can I concatenate all this value & pass it to my target node ?

Please help.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

write a UDF of type context (input parameter is a😞

>String returnValue = "";

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

>returnValue += a\[index\];

>}

>result.addValue(returnValue);

Regards

Patrick

former_member183906
Active Contributor
0 Kudos

You can write UDF as :

From source Suppress and target to ... target node..

take the QUEUE and the context of TDLINE to its parent node item..

maintain loop and concat ..

ex

(String[] tdline)

String [] final ;

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

final.concat(tdline);

}

result.addValue(final);

Former Member
0 Kudos

HI

use the standard Function "concat" to concatenate the three nodes right click on the concat Standard UDF and clear the separator so that you dont get any space between the concatenated values

regards

krishna