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.

In Release 11.2, the following formats are supported for merge-object:<br />

add-mode<br />

addRecords( ) method<br />

• ProDataSet with a single temp-table or multiple temp-tables at the same level<br />

only. For example:<br />

{<br />

}<br />

• Single temp-table. For example:<br />

{<br />

}<br />

dsCustomerOrder: {<br />

eCustomer: [<br />

// Record objects ...<br />

],<br />

eOrder: [<br />

// Record objects<br />

]<br />

}<br />

eCustomer: [<br />

// Record objects ...<br />

]<br />

Note: If you pass a record object with an array or a ProDataSet with nested<br />

temp-table records, the method throws an error object.<br />

An integer that represents a merge mode to use. For Release 11.2, you can<br />

specify the following numeric constants, which affect how the temp-table record<br />

objects in merge-object are added to JSDO local storage:<br />

• progress.data.JSDO.MODE_APPEND — Adds the temp-table record objects<br />

in merge-object to the existing record objects in JSDO local storage. An<br />

error is thrown if a duplicate key is found.<br />

• progress.data.JSDO.MODE_EMPTY — Empties all temp-table record objects<br />

from JSDO local storage and replaces them with the contents of<br />

merge-object.<br />

Note: If merge-object is an empty object ({}), this effectively empties the<br />

data from JSDO local storage.<br />

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

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

Saved successfully!

Ooh no, something went wrong!