Transpose datastore columns into rows with linebreaks

From SMTX Wiki
Jump to navigation Jump to search

In case you have a multi select form field and you want to show the selected values in a readonly display field and you want to combine multiple columns of the datastore behind the multi-select field, you should use the Transpose function. For example: you have a list with persons and want to show from the selected person their email address and organisation:

 TRANSPOSE('||', ' - ', '
', '#REPLACE-FORMFIELD-FormName||PersonList||EmailAddress#', '#REPLACE-FORMFIELD-FormName||PersonList||Department#')

Do not forget to set the checkbox "Contains calculations" active