+

Search Tips | Advanced Search

For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.


Work with external data

Learn about the different concepts required to work with external data.

For the actual API examples, see JSONStore examples.


Pull

Many systems use the term pull to refer to getting data from an external source.

There are three important pieces:

Note: We can populate the internal store with data that is read from a file, an input field, or hardcoded data in a variable. It does not have to come exclusively from an external source that requires network communication.


Example pull scenario

All of the following code examples are written in pseudocode that looks similar to JavaScript.

Note: Use MobileFirst adapters for the Transport Layer. Some of the advantages of using MobileFirst adapters are XML to JSON, security, filtering, and decoupling of server-side code and client-side code.


Push

Many systems use the term push to refer to sending data to an external source.

There are three important pieces:


Example push scenario

All of the following code examples are written in pseudocode that looks similar to JavaScript.

Note: Use MobileFirst adapters for the Transport Layer. Some of the advantages of using MobileFirst adapters are XML to JSON, security, filtering, and decoupling of server-side code and client-side code.

Parent topic: JSONStore advanced topics