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.

eforeInvoke event<br />

beforeInvoke event<br />

Fires when a non–built-in method is called asynchronously on a JSDO, before the<br />

request for the operation is sent to the AppServer.<br />

Applies to: progress.data.JSDO class, invocation method<br />

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

Syntax<br />

function ( jsdo , request )<br />

jsdo<br />

request<br />

A reference to the JSDO that is invoking the method. For more information, see<br />

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

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

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: subscribe( ) method, unsubscribe( ) method<br />

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

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

Saved successfully!

Ooh no, something went wrong!