Go Back   SmartClient Forums > Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 20th Feb 2007, 12:20
jjohns jjohns is offline
Registered Developer
 
Join Date: Jan 2007
Posts: 49
Default 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?
Reply With Quote
  #2  
Old 20th Feb 2007, 12:24
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 30,520
Default

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.
Reply With Quote
  #3  
Old 20th Feb 2007, 12:26
jjohns jjohns is offline
Registered Developer
 
Join Date: Jan 2007
Posts: 49
Default

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...
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


© 2010,2011 Isomorphic Software. All Rights Reserved