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.
Div
id
description
HTML Table
id
class
servoy sSummary
Colgroup Tag
Col
width
80px
Col
Table Head (thead)
Table Row (tr)
style
height: 30px;
Table Head (th)
colspan
2
Method Summary
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
addFoundSet(fs) Exposes an unrelated foundset to the mobile client.
Table Row (tr)
Table Cell (td)
void
Table Cell (td)
addFoundSet(fs, relationNamesToTraverse) Exposes an unrelated foundset to the mobile client.
HTML Table
id
function
class
servoy sDetail
Colgroup Tag
Col
colspan
2
width
100%
Col
Table Head (thead)
Table Row (tr)
style
height: 30px;
Table Head (th)
colspan
2
Method Details
Table Body (tbody)
id
addFoundSet-JSFoundSet
Table Row (tr)
id
name
Table Cell (td)
addFoundSet
Table Row (tr)
id
sig
Table Cell (td)
Span
style
margin-right: 5px;
void
Span
style
font-weight: bold;
addFoundSet
Span
(fs)
Table Row (tr)
id
des
Table Cell (td)
Div
class
sIndent
Exposes an unrelated foundset to the mobile client. If service solution has a module of type Mobile shared module all possible relations from that module are traversed automatically.
var retval = plugins.mobileservice.createOfflineDataDescription('data_');
var ff = databaseManager.getFoundSet('bug_db','mytable');
ff.loadAllRecords();
retval.addFoundSet(ff);
Table Row (tr)
class
lastDetailRow
Table Cell (td)
Table Body (tbody)
id
addFoundSet-JSFoundSet_StringArray
Table Row (tr)
id
name
Table Cell (td)
addFoundSet
Table Row (tr)
id
sig
Table Cell (td)
Span
style
margin-right: 5px;
void
Span
style
font-weight: bold;
addFoundSet
Span
(fs, relationNamesToTraverse)
Table Row (tr)
id
des
Table Cell (td)
Div
class
sIndent
Exposes an unrelated foundset to the mobile client. which can be used in the mobile client in an unrelated way like in a (first) form or databaseManager.getFoundset(...) for each record in the provided (unrelated) foundset the specified relation names are traversed and all data taken.
Table Row (tr)
id
prs
Table Cell (td)
Parameters
Div
class
sIndent
{JSFoundSet} fs - the root foundset {String[]} relationNamesToTraverse - the relations to traverse from records found in root root foundset
Table Row (tr)
id
ret
Table Cell (td)
Returns
Div
class
sIndent
void
Table Row (tr)
id
sam
Table Cell (td)
Sample
Div
class
sIndent
Code Block
language
javascript
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);