Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Removing members from a valuesmanager...

    ...does not seem to completely work. After making a call such as: myValuesManager.removeMember("myForm"), a call to myValuesManager.getMembers() still lists myForm as a member. When calling something like myValuesManager.setValues(record) after the remove has been called, the following error is encountered:

    this.form has no properties
    /ISC_Forms.js?isc_version=5.5.1
    Line 304

    Has this already been patched and I haven't recognized it in the Addendums section?

    #2
    Hi jjohns,

    You need to pass the actual live component, not the String ID, eg:

    Code:
    myValuesManager.removeMember(myForm);
    This is documented, but your usage makes sense too. We'll upgrade the API to handle either style of parameter.

    Comment


      #3
      Right, I got ya. Didn't even realize I was calling it that way since so many other APIs can accept the ID as well...

      Comment

      Working...
      X