Repeated Data Mapping – Example II
In this example we will map the repeated values to a Text Input component and display 12 repeated instances of this component.
General instructions
Open02_RepeatedData2.wfd
.Access the Layout and its Layout Stacked 1 component.
Subcomponents tab of Layout Stacked 1.
Access the
Setting up the repetition
Set its Text Input 1 child to be repeated (do not repeat the Text 1 component).
Select the only available array and rename the item to a more descriptive name, e.g., .
Proof the solution; you will see 12 empty repeated text inputs.
Type something into any of them (all of them will suddenly contain the same value).
Value).
This is because all these repeated instances are mapped to the same field outside the repeated array (
Mapping instructions
Data Mapping tab and map the Value field to .
Access the Text Input 1's repeated componentThis makes each repeated instance value independent.
Proof the solution (all the Text Input 1 instances which are now independent have their values initialized from the data).
Advanced Data Mapping dialog and rename the currently used value, , to , for example.
Access the Text Input 1Proof the solution (all the Text Input 1 instances which are also independent do not have their values initialized from the data because no variable called exists in the array.
See02_RepeatedData2_DONE.wfd
.