on 12-16-2010 4:48 PM
hi all,
i need to map a node with many occurrencies to a node with only one ocurrency, and i need to concat all the values from the source node into the target node.
example:
<delivery> 1..unbounded --> <data> 0..1
<delivery> "this is "
<delivery> "an example"
result
<data> "this is an example"
does anybody know how can i solve this qestion?
thanks in advanced.
regards, Fabian
Hi,
Go for UDF...
pass the source data as queue input to the UDF(i.e array)..in that udf loop over the source input and do concat inside the loop and pass the final result to the target element...
string target = "";
for(int i =0 ;i<input.length;i++)
{
target = target + input<i>;
}
if there are multiple contexts in this then need to handle the same
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
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.