Child pages
  • Developing the Mobile Service Solution

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Update description of offline data construction to provide clearer understanding of how it interacts with the Mobile Shared Module

...

The ws_read(version,name) on the offline_data form has to return an OfflineDataDescription (=JSON) object filled with foundset data the developer wants the mobile client to retrieve. 
An OfflineDataDescription instance is created with:

...

Note: the argument is optional and is used to call rest endpoints for row data at forms starting with this prefixThen we need to

 

The next step is determining what related data should be traversed and sent to the client. By default (since Servoy 7.2) any relations that exist in a "Mobile Shared Module" attached to the "Mobile Service Solution" will be included in the traversal.

Alternatively, if you provide a list of relation names which should be used in traversal to find all data, like:to include, this will override the inclusion of the relations contained in the "Mobile Shared Module", and only include those relations that you specify.

Code Block
var traverse = new Array();
traverse.push('accountmanager_to_companies');
traverse.push('companies_to_contacts');

...