How does ValuesManager.saveData() work?

I have an XJSONDataSource. The XJSONDataSource is used with a Criteria to serve as model for several DynamicForms all of which are added to a ValuesManager.

When I make some edits in one of the forms and call ValuesManager.saveData() I notice that nothing useful seems to happen. Specifically, the updateData() methods in my XJSONDataSource are never called.

I am wondering how ValuesManager.saveData() is supposed to work and what might be reasons why the XJSONDataSource.updateData() are not being called.

Thanks for your help.

BTW, I feel that there is a real need for a few simple samples that shows how to use smartgwt to do CRUD operations with a real server side datasource. If any one who has experience with that is willing to help then I would be glad to put such samples together. Please contact me off-list at farrukh-at-wellfleetsoftware.com if you can help. Thanks.

Users interested in contributing samples could add them to the smartgwt-extensions project as well.

Will do once I have some basic understanding of how to do it. Can you please help me with my question on understanding how ValuesManager.saveData() is supposed to work and what possible reasons would prevent my XJSONDataSource.updateData() to not be called?

Thanks for your help.

How are you determining that it is not called? You should be checking for JS errors, and you should check Firebug to see if a network request was issued that went nowhere.

My bad. There were required fields in SectionStackSections that were not visible and thus I missed the error. The Dev Console identified the problem clearly. Sorry for the trouble.

How to get all errors when validating a ValuesManager

Since I have several forms not all of which are visible, is there a way in ValuesManager API to get all errors in a single call so I can display a dialog with the errors? I do not see it.