DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.
Enter additional information related to this 'class' inside the {div} macro with 'id=description'
{column:width=80px|padding=0px}{column}{column}{column}
Method Summary
void
addFoundSet(fs)
Exposes an unrelated foundset to the mobile client.
void
addFoundSet(fs, relationNamesToTraverse)
Exposes an unrelated foundset to the mobile client.
{column:width=100%|padding=0px}{column}
Method Details
void
addFoundSet
(fs)
Returns
void
Sample
var retval = plugins.mobileservice.createOfflineDataDescription('data_'); var ff = databaseManager.getFoundSet('bug_db','mytable'); ff.loadAllRecords(); retval.addFoundSet(ff);
void
addFoundSet
(fs, relationNamesToTraverse)
Parameters
{JSFoundSet} fs – the root foundset
{String[]} relationNamesToTraverse – the relations to traverse from records found in root root foundset
Returns
void
Sample
var data = plugins.mobileservice.createOfflineDataDescription('data_'); var fs_contact = globals.accountmanager_contacts; //contains the account manager contact var traverse = new Array(); traverse.push('accountmanager_to_companies'); data.addFoundSet(fs_contact, traverse);