1 Reply Latest reply on May 23, 2011 10:12 PM by $Nith$

    Resetting som array index

    peter_on_the_isar Level 1

      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?