O'Reilly logo

SproutCore Web Application Development by Tyler Keating

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

Synchronizing data with a remote data source

Finally, there is the matter of invoking the real Create-Read-Update-Destroy (CRUD) actions on the data, which will ultimately be performed in a remote data store. We have already seen the busy states while reading data, so let's look at the additional busy states while creating, updating, and destroying data.

Synchronizing data with a remote data source

As we can see from the previous figure, all three of these processes are started using the commitRecord method of the store. As we've seen before, when calling commitRecord, we pass in either the record type and ID or the store key. But we can pass a parameter's object too, which can be used to pass ...

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