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.

eforeUpdate event<br />

beforeUpdate event<br />

Fires before the JSDO, by means of a saveChanges( ) call following an assign( )<br />

call, sends a request the AppServer to update a record.<br />

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

property (JSDO)<br />

The following parameters appear in the signature of the event handler function:<br />

Syntax<br />

function ( jsdo , record , request )<br />

jsdo<br />

record<br />

request<br />

A reference to the JSDO that is invoking the update operation. For more<br />

information, see the description of the jsdo property of the request object.<br />

A reference to the temp-table record upon which the update operation is about to<br />

act. For more information, see the description of the jsrecord property of the<br />

request object.<br />

A reference to the request object returned before the update operation begins. For<br />

more information, see the description of the request object.<br />

Example:<br />

myjsdo.subscribe('beforeInvoke', 'myMethodName',<br />

onBeforeInvokeMyMethodName);<br />

myjsdo.myMethodName( paramObject );<br />

function onBeforeInvoke ( jsdo , request ) {<br />

/* code to execute before sending request to the server */<br />

};<br />

See also: assign( ) method (JSDO class), subscribe( ) method, unsubscribe( )<br />

method<br />

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

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

Saved successfully!

Ooh no, something went wrong!