Visualforce Remote Objects – Retrieve Offset Paging Example

Below is a simple example of retrieving Account records using Salesforce Remote Objects. I imagine the paging functionality could be better, but it works to show how the offset property can be conditionally added to the query parameters JSON Object.

Remote Objects Retrieve Example

Salesforce has decent documentation on using RemoteObjects. See Format and Options for Remote Objects Query Criteria to learn more about record selection.

Salesforce Remote Object Documentation