In our application we are calling valuesManager.saveData() and getting a failure when members is undefined. We can work-around this by testing valuesManager.getMembers() before calling saveData() but it is a bug that you might want to fix, ie calling valuesManager.saveData() can do nothing if there aren't any members associated with the valuesManager yet.
We are not sure why the valuesManager has no members but dynamicForm instances are usually associated some time after valuesManager.create(), so it's quite likely that this can happen. In our case some of the associated dynamicForm instance create calls are conditional on other settings.
we are running Version v12.0p_2018-08-22/LGPL Deployment (2018-08-22)
In the (debug, not-minified) ISC_Forms.js file, the fail is happening within function valuesManager._saveDataReply() (line 74,860)
The failure is happening for us when referring to the variable members in the loop:
for (var i = 0; i < members.length; i++) { (line 75,010)
I suggest that you test for "no members assigned" at the top of the _saveDataReply() function after the line
var members = this.getMembers();
since I think there is nothing to do in the function if there are no members to save yet?
Thanks
We are not sure why the valuesManager has no members but dynamicForm instances are usually associated some time after valuesManager.create(), so it's quite likely that this can happen. In our case some of the associated dynamicForm instance create calls are conditional on other settings.
we are running Version v12.0p_2018-08-22/LGPL Deployment (2018-08-22)
In the (debug, not-minified) ISC_Forms.js file, the fail is happening within function valuesManager._saveDataReply() (line 74,860)
The failure is happening for us when referring to the variable members in the loop:
for (var i = 0; i < members.length; i++) { (line 75,010)
I suggest that you test for "no members assigned" at the top of the _saveDataReply() function after the line
var members = this.getMembers();
since I think there is nothing to do in the function if there are no members to save yet?
Thanks
Comment