DMXzone App Connect Data Traversal Support Product Page

Answered

comma separated string as data-source

Asked 25 Sep 2017 21:12:05
1
has this question
25 Sep 2017 21:12:05 Hans Haverlach posted:
Hi there,

Can I use a variable with as value a comma separated string as a datasource for data iterator?
That would be cool.
If not, how could I solve this problem:
I loop through a table, and one column of the table holds a comma separated string.
I want to have a nested repeat that goes over all the values in the comma separated string from the column field.
Is this possible?

Replies

Replied 26 Sep 2017 08:41:51
26 Sep 2017 08:41:51 Teodor Kuduschiev replied:
Hello Hans,
Yes, that is possible and it is really easy with app connect and app connect formatter.
Create your main repeat and bind data inside it.
Then inside it nest the second repeat - for value, select the binding from the parent container which returns the comma separated string, and apply a split filter to it, split by: ,

See screenshot:


And in the nested repeat use {{$value}} to show the values from the comma separated list
Replied 26 Sep 2017 10:25:44
26 Sep 2017 10:25:44 Hans Haverlach replied:
That is great. Forgot all about SPLIT!
Thank you Teodor.
Replied 18 Aug 2019 12:45:49
18 Aug 2019 12:45:49 Will Vel replied:
this helps very much.. can you tell me how to assign the values generated by $value to:

Variable1
Variable2
Variable 3
...

thanks

Reply to this topic