In the Scope of Visualforce
What are Remote Objects?
Getting Started with Remote Objects
For this demo, we’ll setup a simple model for editing contacts:
Once we have that we can start define our models from both Remote Objects and with CanJS:
And we can use both to define the functionality of a collection in CanJS:
And include functionality like updating a record off an event:
Since we have tied the Remote Objects collection to our CanJS collection, we can call the methods we get from SObjectModel directly in reaction to the event. Now we can bind this all to a Mustache style template:
And we have a working table that displays, edits and deletes contact data … all without a single line of Apex having been written.
You can see the full version at this gist.
A Time and Place for Everything