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.

Notice that the sample code:<br />

Accessing built-in CRUD operations<br />

• Subscribes an event-handler function, onAfterDelete, to the afterDelete event<br />

to enable error-checking and manipulation of the revised record.<br />

• Calls findById( ) to retrieve the record to be deleted, and then calls remove( )<br />

on this JSRecord object.<br />

• Calls saveChanges( ) to execute DeleteOrderEntry( ) on the AppServer and<br />

thereby synchronize the content of local storage with the database.<br />

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

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

Saved successfully!

Ooh no, something went wrong!