Initializing help system before first use

To Repeat all Form Fields for each element in a Set

You can create a form where the form fields are repeated for each element in a set and linked to each of the elements of the array.
  1. In the Palette > Components group, click and drag the Form element onto the artboard.
  2. Drag a Repeat Contents element onto the Form on the artboard and enter the following in the repeat expression field:
    =index in scenario.entities.MY_SET
  3. In the Palette > Components, click and drag the Field element onto the Form.
  4. Select the Field element on the Form. In the Attributes pane:
    • Set Data > Entity to the element that will store the data (MY_ARRAY).
    • Set Label to ='MY_ARRAY(' + index.label + ')'.
    • Set Indicies to =index.value.
Code editor
<vdl-form vdl-repeat-contents="=index in scenario.entities.MY_SET">
    <vdl-field entity="MY_ARRAY" label="='MY_ARRAY(' + index.label + ')'" indices="=index.value"></vdl-field>
</vdl-form>