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.

invocation method<br />

invocation method<br />

Any method on the JSDO that is defined by the <strong>Mobile</strong> resource to execute a<br />

corresponding ABL routine on the AppServer as an invoke operation. This can be any<br />

ABL routine in the <strong>Mobile</strong> interface that is annotated with an "invoke" operation type.<br />

The invocation method name can be the same as the ABL routine or an alias, as<br />

defined by the resource. The method passes any ABL input parameters as properties<br />

of an object parameter. The method returns results from the ABL routine, including any<br />

return value and output parameters, as properties of a request object that is returned<br />

by the method.<br />

Note: The results of an invoke operation have no effect on JSDO local storage.<br />

After completing execution, any working records previously set before the method<br />

executed remain as the working records.<br />

Return type: request object<br />

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

Syntax<br />

op-name ( [ input-object [ , async-flag ] ] )<br />

op-name<br />

The name (specified as an identifier) of the invocation method as defined by the<br />

<strong>Mobile</strong> resource.<br />

input-object<br />

An object whose properties and values match the case-sensitive names and data<br />

types of the input parameters specified for the ABL routine. If the routine does not<br />

take input parameters, specify null or leave out the argument entirely.<br />

async-flag<br />

A Boolean that when true causes the method to execute asynchronously and<br />

when false causes the method to execute synchronously. The default value is<br />

true.<br />

For a synchronous invocation, the method returns a request object that contains<br />

several properties depending on the status of the invoke operation. However, if there<br />

are any ABL output parameters or return value, they are returned as properties of an<br />

object referenced by the response property of the request object. The response object<br />

properties for output parameters match the case-sensitive names and data types of the<br />

output parameters specified for the ABL routine. Any return type is returned by an<br />

<strong>OpenEdge</strong>-defined _retVal property with a matching data type.<br />

For an asynchronous invocation, the method returns a similar request object as input<br />

to any event handler function subscribed to the following named events that fire in the<br />

following operational order:<br />

1. beforeInvoke event<br />

2. afterInvoke event<br />

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

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

Saved successfully!

Ooh no, something went wrong!