on 09-25-2008 3:37 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.