julien.meyer
25 Jan 2012, 6:57 AM
Hello,
When the server response to a delete operation (from a model instance destroy call) is a failure (success to false), the store doesn't revert the operation and the instance is nevertheless deleted from the application.
I looked into extjs source files and it seems that the model instance is first removed from the store and after, the proxy is called. The proxy result is just used for user callback function. Is that correct or Have i bad understand some thing ?
If my analysis is correct, how to implement a "rollback" operation ?
Thanks
When the server response to a delete operation (from a model instance destroy call) is a failure (success to false), the store doesn't revert the operation and the instance is nevertheless deleted from the application.
I looked into extjs source files and it seems that the model instance is first removed from the store and after, the proxy is called. The proxy result is just used for user callback function. Is that correct or Have i bad understand some thing ?
If my analysis is correct, how to implement a "rollback" operation ?
Thanks