Hi, i have an issue with dynamicform(s) and valuesmanager.
I have a large datasource that i've split up in to 3 forms over 3 tabs.
In our old web it works fine when saving etc.
We have migrated the code to the new smartgwt 13, and it still works fine.
However, we get tons of warnings in the log, for example:
*12:14:59.948:XRP4:WARN:ValuesManager:isc_ValuesManager_0:Member Form: [DynamicForm ID:sched] has explicitly specified value for field[s] 'itype', but has no item associated with this fieldName.
Ignoring this value. Values may be set for fields with no associated form item directly on the valuesManager via valuesManager.setValues(), but not on member forms. See ValuesManager documentation for more info.
I have ofc read the docs, and i can't find anything wrong. Again, i've basically copied and pasted.
Pseudo-code:
But after the save, which all works fine, the warnings i gave an example for above come in for fields a and b in form2, and c and d in form2, basically every field in the datasource that haven't added to the respective forms result in a warning post-save.
Can you see something obvious? Is it possible that the issue has always been there, it only was not logged prior to 13? Because i can't see any difference in my code....
Pointers would be great.
I have a large datasource that i've split up in to 3 forms over 3 tabs.
In our old web it works fine when saving etc.
We have migrated the code to the new smartgwt 13, and it still works fine.
However, we get tons of warnings in the log, for example:
*12:14:59.948:XRP4:WARN:ValuesManager:isc_ValuesManager_0:Member Form: [DynamicForm ID:sched] has explicitly specified value for field[s] 'itype', but has no item associated with this fieldName.
Ignoring this value. Values may be set for fields with no associated form item directly on the valuesManager via valuesManager.setValues(), but not on member forms. See ValuesManager documentation for more info.
I have ofc read the docs, and i can't find anything wrong. Again, i've basically copied and pasted.
Pseudo-code:
Code:
DataSource settings; Dynamicform form1; Dynamic form form2; ValuesManager manager; manager.setDataSource(settings); form1.setDataSource(settings); form2.setDataSource(settings); form1.setFields(a, b); form2.setFields(c, d); form1.setValuesManager(manager); form2.setValuesManager(manager); manager.add(form1); manager.add(form2); ... //When form is edited: manager.rememberValues();//in case user later clicks cancel form1.edit(); form2.edit(); ..... //when saving: manager.saveData();
But after the save, which all works fine, the warnings i gave an example for above come in for fields a and b in form2, and c and d in form2, basically every field in the datasource that haven't added to the respective forms result in a warning post-save.
Can you see something obvious? Is it possible that the issue has always been there, it only was not logged prior to 13? Because i can't see any difference in my code....
Pointers would be great.
Comment