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.

fill( ) method<br />

After this method completes execution, you can read the record objects of JSDO local<br />

storage by using the find( ), findById( ), foreach( ), and getData( ) methods<br />

of the JSDO. You can return the schema for this data by using the getSchema( )<br />

method. You can create a new record object in local storage using the JSDO add( )<br />

method, and you can update or delete a single record object in local storage by using<br />

the assign( ) or remove( ) method, respectively. You can display a record in a form<br />

by calling the display( )method on a UIHelper instance. You can merge data<br />

returned by an invocation method with the data in local storage using the<br />

addRecords( ) method.<br />

The following code fragment shows the fill( ) method invoked on a JSDO for a<br />

ProDataSet resource (dsCustomerOrder):<br />

dataSet = new progress.data.JSDO( 'dsCustomerOrder' );<br />

dataSet.fill();<br />

See also: invocation method, saveChanges( ) method, progress.ui.UIHelper<br />

class<br />

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

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

Saved successfully!

Ooh no, something went wrong!