Now that we are able to load data successfully into our application, we can move on to persisting changes that we've made to this data within our client-side application. In most applications, when a change is made to a data store or record, we want to persist that change back to the data source, be it a server-side database or LocalStorage store. As mentioned previously, Ext JS provides us with the
Ext.data.writer.Writer class (and its sub-classes) to manage the fields required to be written.
In its most simple and standard form, a store will save any changes made when the
sync method is called, without any further additions to our
If we continue with our users store example, we can update one of the
record fields ...