O'Reilly logo

Ext JS Essentials by Stuart Ashworth, Andrew Duncan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Saving data

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 proxy configuration.

If we continue with our users store example, we can update one of the record fields ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required