cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Passing multiple values to a string variable in BLS Transaction

aravinth_anandhan
Active Participant
0 Likes
779

Hi All,

How to pass multiple values to a string variable in a transaction, For example i my document 3 rows are there like

Test1

Test2

Test3

Now i need to get these values in a string variable like Test1, Test2, Test3.

Is there any way to get these values in a single line with comma separated?

--Aravinth

Accepted Solutions (1)

Accepted Solutions (1)

suhas_nagaraju
Product and Topic Expert
Product and Topic Expert
0 Likes

During each iteration keep appending the value to a string variable.

Thanks,

Suhas

agentry_src
Active Contributor
0 Likes

To expand on what Suhas mentioned,

Create a transaction property of type string.

In your expression editor window you will set



Transaction.StringProperty = Transaction.StringProperty &","&  Repeater.Output{/<stringnode>}

This should continually add the output of the repeater to your property.

Good luck,

Mike

Edited by: Michael Appleby on Mar 5, 2012 4:08 PM

Answers (3)

Answers (3)

aravinth_anandhan
Active Participant
0 Likes

Hi,

Thank you very much Suhas, Mike and Pradeep. Now it is adding values to the same string. Thanks again.

--Aravinth

suhas_nagaraju
Product and Topic Expert
Product and Topic Expert
0 Likes

For that you have to use repeater action block so as iterate over the rows and concatenate the strings as I mentioned in the previous post.

Thanks,

Suhas

aravinth_anandhan
Active Participant
0 Likes

Hi,

Suppose i am using repeater action to concatenate values, it ll hold the last value came from repeater. It is not storing all values from repeater.

suhas_nagaraju
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Aravinth,

Please refer this thread - [Concatenate strings|;.

Also when you mean document, is it an xml?

Thanks,

Suhas

aravinth_anandhan
Active Participant
0 Likes

Hi Suhas,

It is in my Document action block, and also my document is having only one column with multiple rows.

Example:

NAME (Column Name)

test1(Row1)

test2(Row2)

test3(Row3)

I want these rows to be stored in a single Variable with comma separated. If i am having a multiple columns with singe Row, then i can able to use '&' to concatenate in to a single variable. Here the issue is, i am having single column has multiple rows.

Edited by: Aravinth A on Mar 2, 2012 6:39 AM

Former Member
0 Likes

hi Aravinth,

try repeating through the document and concatenate each row to a String variable with a "," in between.

Regards,

Pradeep D

Edited by: Pradeep Dwarakanath on Mar 2, 2012 7:29 AM