String concatenation in OSB :(
890740May 10 2012 — edited May 10 2012Hi all,
I have a requirement where I need to extract the values of one element and concat all the values seperated with ',' (comma). For example.
<Root>
<Value>1</Value>
<Value>2</Value>
<Value>3</Value>
<Value>4</Value>
</Root>
I need to get the values of <Value> tag in a comma separated string something similar to this
<Root>
<Value>1,2,3,4</Value>
</Root>
I used for-each loop in OSB tried replacing the value by concating its value with ','. But I end up in having only the last value of the <Value> tag with ',' like
<Root><Value>4,</Value><Root>
How do I get the values of remaining tags. :( I am really in need of help and donno what to do. Kindly help me in getting this solved.
Thanks