Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Resetting som array index

Avatar

Not applicable

My form contains a number of instances of a list of members.

List1

Member A.Brown

Member B. Black

List2

Member A.Brown

Member B. Black

My data looks like the following.

<members>

    <member>

       <name>A. Brown</name>

       <name>B. Black</name>

    </member>

</members>

For each instance of the list, I use the following binding on the containing subform:

<bind match="dataRef" ref="members.member[*]"/>

and then the following binding on the field containing the name

<bind match="dataRef" ref="name"/>

This works perfectly for the first instance of the list.

The second instance of the list is empty because (I assume) the array index is now at the end of the array.

My question:

How can I reset the array index for subsequent instances of the list?

0 Replies

Avatar

Level 10

Did you try Global Data Binding?

By using global data binidng, you can map single unit of data to multiple instances of form fields.

Nith