PDA

View Full Version : Newbie, Confused about json writer and .sync



davisty
19 Mar 2014, 10:50 AM
Hello,

Im a buyer of "ExtJS In Action ver 4.0". Im trying to learn EXTJS and MVC. I have a question about the store (json) writer.

If I have a grid that has dirty records (creates, updates, deletes ...) does the .sync determine the CRUD action that needs to be taken. Whether the record needs to be added, updated, deleted.

Thank You

brian428
19 Mar 2014, 7:40 PM
Yes, Stores track these changes. You can also look at them for yourself (outside of a sync()) via the Store methods getModifiedRecords(), getNewRecords(), getUpdatedRecords(), and getRemovedRecords().

davisty
20 Mar 2014, 1:45 AM
Thank You Very Much for your reply. It is VERY appreciated...