01.06.2013 Views

OpenEdge Development: Mobile Applications - Product ...

OpenEdge Development: Mobile Applications - Product ...

OpenEdge Development: Mobile Applications - Product ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

addRecords( ) method<br />

addRecords( ) method<br />

Reads a specified object and updates the local storage of the JSDO. This updates all<br />

temp-tables read in for a ProDataSet or a specified temp-table, depending on how the<br />

method is called. The data is merged into JSDO local storage and affects existing data<br />

according to a specified merge mode and optional key fields.<br />

After execution, the working record for each temp-table referenced by the JSDO is not<br />

set.<br />

Return type: null<br />

Applies to: progress.data.JSDO class, table reference property (JSDO)<br />

Syntax<br />

[table-ref.]addRecords ( merge-object , add-mode [ , key-fields ] )<br />

table-ref<br />

A table reference on the JSDO. If you call the method on table-ref, the method<br />

merges data only for the referenced temp-table. If you call the method on the<br />

JSDO itself, the method merges data for all temp-tables referenced for a<br />

ProDataSet.<br />

merge-object<br />

An object with the data to merge. If you call the method on table-ref, the object<br />

can either be an object that contains an array of record objects to merge with the<br />

referenced temp-table or a ProDataSet-formatted object containing such an array.<br />

Note: This object must have a supported JavaScript object format that matches<br />

the data returned from the built-in read operation (JSDO fill( ) method).<br />

For example, the object returned from an invocation method for an output<br />

temp-table or ProDataSet that has the same schema as supported output<br />

from the built-in read operation should work.<br />

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

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

Saved successfully!

Ooh no, something went wrong!