I am trying to handle an exception in an instance of Ext.data.Store when creating a new Ext.data.Record . When the server responds with the following json:
{"success": false, "message": "some text"}
I get a request exception, even if the server returns an HTTP 200 Response!
To get the 'remote' error, I need to create an object with the root property
({ "success": false, "message": "some text", "data": { "PositionId": "00000000-0000-0000-0000-000000000000", "Name": "123" } })
... but I do not want this. Is there any way to change this behavior?
In addition, when I insert a record into the repository, it is automatically added to the linked grid, but if an error occurs, it remains there, so I need to reboot the repository with every error. Is there a better way to do this?
json error-handling extjs jsonstore
kalan
source share