2 Replies Latest reply: Sep 22, 2011 9:24 AM by no2morrow RSS

    Second instance copying a single value from first instance.  All following act normal.

    no2morrow

      SubFormA

      TableA

      DropDownList1

      DropDownList2

      TextName

      DateToday

      NumericAlpha

      NumericaBeta

      ButtonDelete

      ./TableA

      ButtonAdd

      /SubformA

       

       

      Each field (denoted in bold) is mapped to a schema.  All non-bold items have bindings of "None"  TableA has a default binding of None and is set to repeat for each data item with no min count, no max, and no initial count.

       

      When I click my "ButtonAdd' I create a new instance of TableA via  "_TableA.addInstance(true);" and I remove the instances via ButtonDelete: "_TableA.removeInstance(this.parent.index)"

       

      Pretty straight foreward so far.

       

      The problem is this: When I add a second instance of TableA, DropDownList1 copies the value from the first instance.  Furthermore, if I pick a new choice in DropDownList1 from either instance, the change is reflected in the other.  No other values are mirrored like this.  Furthremore, if I add a thrid, fourth, etc instance, these instances work indipendently as expected.  Lastly, if I remove the first two instances via ButtonDelete, all remaining instances continue to act normally.

       

      I've no idea why this is happening.  Any ideas?