View Full Version : Store.sync() remote server

12 Apr 2013, 4:05 PM
I am using Store.sync() to send the data updates to my java servlet. I am having a problem where removing and editing the store are sending the same json to my servlet ex) delete data = {"id":"1","name":"Joe"} edit data = {"id":"1","name":"Joe"} are the two json arrays my servlet gets how do I tell if they are from remove or edit calls? Does Store.remove() pass any extra parameters to the servlet?

14 Apr 2013, 8:05 AM
Are you batching the requests? IMO there should be a check if there is a modification and remove it when there is a remove. Likewise when a remove is done, it should check if the record is a phantom and handle it client side.