Skip navigation
Currently Being Moderated

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

Sep 22, 2011 8:24 AM

Tags: #mirror #duplicate #instance #value #copy















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?

  • Currently Being Moderated
    Sep 22, 2011 9:21 AM   in reply to no2morrow

    TableA needs to be bound to the repeating parent node in your schema.



    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points