While implementing a bulk update/insert feature using an ajax proxy, I ran into an issue with store.sync()
. This method sends a request to the server for each dirty record. But if there is an error with any of the records on the server, how can I properly notify the client with a suitable message?
proxy: { type: 'ajax', url: "localhost:8888/service/baseLocations", reader: { type: 'json', rootProperty: 'data', successProperty: 'success', totalProperty : 'total' }, actionMethods: { create: 'POST', read: 'GET', update: 'POST', destroy: 'DELETE' }, writer : { type: 'json' }, batchActions: false }