iNTERFACEWARE Products Manual > Installing and Using Chameleon > Using Python Scripting > Chameleon Python API > Field Object > Field Object Usage Examples > Concatenating Repeating Fields |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
You can use Python to create a single field from a collection of repeating fields. To do this, create the following segment inbound script:
This creates a single value from the collection of repeating fields. In the created value, the fields are separated by commas. For example, this script can be used to convert a collection of repeated phone numbers:
After this script is executed, the field becomes:
You can now use Chameleon's Message Grammar window to map this field from the segment to your data table. |