OpenEdge Development: Mobile Applications - Product ...
OpenEdge Development: Mobile Applications - Product ...
OpenEdge Development: Mobile Applications - Product ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
progress.data.JSDO class<br />
Notes • For more information on defining a <strong>Mobile</strong> interface, including the built-in CRUD<br />
and non-built-in invoke operations of a <strong>Mobile</strong> resource, see Chapter 3, “Creating<br />
<strong>Mobile</strong> Services.”<br />
• The JSDO supports a working record for each temp-table referenced in its local<br />
storage. Certain methods set a specific record as the working record. After other<br />
methods execute, there is no working record or existing working records remain<br />
unchanged. When there is a working record, you can access the fields of the<br />
record using one of the following mechanisms:<br />
Syntax<br />
jsdo.table-ref.field-ref<br />
jsdo.record.data.field-ref // Read only when a single table-ref is defined<br />
jsdo.table-ref.record.data.field-ref // Read only<br />
jsrecord-ref.data.field-ref // Read only<br />
jsdo<br />
The reference to a JSDO, and if the JSDO has only one temp-table, an<br />
implied reference to the working record defined for that temp-table.<br />
table-ref<br />
A table reference with the name of a temp-table in jsdo local storage and a<br />
reference to the temp-table working record. There is one table reference in a<br />
JSDO for each temp-table referenced by the JSDO.<br />
field-ref<br />
record<br />
data<br />
A field reference on a table-ref, or a property on the data property object,<br />
with the name and value of a field in the working record of the referenced<br />
temp-table. There is one such field reference and data object property for<br />
each field defined in the temp-table schema.<br />
A property of type JSRecord on a table reference, which references the<br />
working record of a temp-table specified by:<br />
• jsdo.table-ref<br />
• jsdo if the JSDO has only one temp-table<br />
If the JSDO has more than one temp-table, the record property is null at<br />
the JSDO level and is available only on a table-ref.<br />
A property on a JSRecord object with the field values for the working record<br />
specified by:<br />
• jsdo.table-ref<br />
• jsdo if the JSDO has only one temp-table<br />
• js-record of an associated JSDO temp-table<br />
162 <strong>OpenEdge</strong> ® <strong>Development</strong>: <strong>Mobile</strong> <strong>Applications</strong>