I have a use case similar to the master detail example in :
http://www.smartclient.com/smartgwtee/showcase/#master_detail_batch
I'm wondering how to report and show validation errors on details records (order items in the example).
What should be the format of the validation errors coming from the server? Something like
?
Do I have to iterate over the errors and add them them to the orderItemsList grid using ListGrid.setRowErrors()? Or is there a smarter way of doing it?
Note that I'm using a custom data source on the server side as I'm using a NoSQL database.
Thanks for your help.
--Pierre
http://www.smartclient.com/smartgwtee/showcase/#master_detail_batch
I'm wondering how to report and show validation errors on details records (order items in the example).
What should be the format of the validation errors coming from the server? Something like
Code:
errors:[ { "items[0]/quantity":[ "must be positive" ], "items[1]/unitPrice":[ "must be positive" ] } ],
Do I have to iterate over the errors and add them them to the orderItemsList grid using ListGrid.setRowErrors()? Or is there a smarter way of doing it?
Note that I'm using a custom data source on the server side as I'm using a NoSQL database.
Thanks for your help.
--Pierre
Comment