Page History
We sometimes get the request to support repetitions in a text item and although we do think this is a feature we would like to implement, we have not gotten round to it yet as there is in most cases a (not very user friendly) workaround. To explain this we use the example of a set of persons:
Instance ID | Person.name | Person.age |
---|---|---|
Person1 | "Kim" | 25 |
Person2 | "Rick" | 30 |
Person3 | "Bob" | 35 |
Person4 | "Bob | 36 |
Simple cases
For this workaround we use the possibility to add fields to a text item in which we can model collects
to give us a set of values which we can join into a presentable string. This would look similar to:
...
This would result in a comma separated string of persons. However, as explained in the collection functions documentation this will only show the unique elements in the set. So if you have the collection of instances with names: Kim, Rick, Bob and Bobpersons as shown above. The resulting string would be:
No Format | ||
---|---|---|
| ||
"Kim, Rick, Bob" |
...
One solution could be to add more unique elements in the collection resulting in something like:
...
Which could give us the string with all persons and ages if the combinations of the two are unique. In our case this would be:
No Format | ||
---|---|---|
| ||
"Kim 25, Rick 30, Bob 35, Bob 36" |
Unique strings and replacement
...