01.06.2013 Views

OpenEdge Development: Mobile Applications - Product ...

OpenEdge Development: Mobile Applications - Product ...

OpenEdge Development: Mobile Applications - Product ...

SHOW MORE
SHOW LESS

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 />

Note: If a field-ref has the same name as a built-in property or method of<br />

the JSDO, you must use the data property to reference its value in the<br />

working record.<br />

Caution: Never write directly to a field-ref using this data property; in this<br />

case, use field-ref only to read the data. Writing to data using<br />

such a reference does not mark the record for update when calling<br />

the saveChanges( ) method. To mark a record for update, you<br />

must assign a field value either by setting a<br />

jsdo.table-ref.field-ref for a working record or by calling the<br />

assign( ) method on a valid table-ref or JSRecord object<br />

reference.<br />

jsrecord-ref<br />

A reference to a JSRecord object of a temp-table in JSDO local storage. You<br />

can return a jsrecord-ref for a working record as the value of the record<br />

property or as a value returned by supported JSDO built-in methods that<br />

return a working record, such as add( ) and find( ).<br />

For more information on the properties available to reference working record fields<br />

using this syntax, see Table 10 and Table 8. For more information on the methods<br />

for setting the working record for referenced temp-tables, see Table 11 and<br />

Table 9.<br />

• Many JSDO built-in methods are actually invoked on a JSDO table reference, and<br />

can only be invoked on the JSDO itself when its local storage is initialized with a<br />

single temp-table.<br />

• For a multi-table ProDataSet, the JSDO accesses the data for all unrelated<br />

temp-tables in local storage as top-level tables of the JSDO. Access to data for all<br />

related child temp-tables depends on the working record of the parent temp-table<br />

in the JSDO and the setting of the useRelationships property.<br />

See also JSRecord object, progress.data.Session class, record property, table reference<br />

property (JSDO), table reference property (UIHelper)<br />

<strong>OpenEdge</strong> ® <strong>Development</strong>: <strong>Mobile</strong> <strong>Applications</strong> 163

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!