I have a form with af multiselection list box control inside a repeating section with the following structure.
I would like to have the values from the repeating section parsed to at singlefield text field (for later parsing i a database)
My fields structure looks like this

Companies is my repeating section
Name is a text field
Description is a text field
Roles is a repeating text field. Used in the form with af Multiselection list box
So form can have multiple companies
Each company has a name, description and multiple roles
A need a rule that extracts the values of the companies repeating section and parse them into the field 'CompanyInfo' like this:
CompanyAName#CompanyADescription#CompanyARole1Value|CompanyARole2Value;CompanyBName#CompanyBDescription#CompanyBRole1Value|CompanyBRole2Value,CompanyBRole3Value
So repeating section are devided by semicolons. Fields within repeating section is devided by #. And values inside Roles is devided by |
I have tried with different eval/concat combinations but can't quite get it working.
So please help with this one and let me now if additional information is required
Best regards
Søren, DK