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.

esponse property<br />

response property<br />

Returns an object whose properties contain data from a <strong>Mobile</strong> built-in or invoke<br />

operation executed on the AppServer.<br />

Data type: Object<br />

Access: Read-only<br />

Applies to: request object<br />

If a built-in <strong>Mobile</strong> operation (create, read, update, or delete) returns successfully and<br />

the response is valid JSON that can be converted to a JavaScript object, the response<br />

property is a reference to the temp-table or ProDataSet object that is returned from the<br />

AppServer. If the server response is not valid JSON, the response property is<br />

undefined.<br />

If an invoke operation returns successfully and has no return value or output<br />

parameters, the property is null. If the invoke operation has a return value, you can<br />

read it as the value of the object _retVal property. If the operation has output<br />

parameters, you can read these parameters as the values of object properties whose<br />

case-sensitive names and data types match the ABL names and data types of the<br />

output parameters specified for the operation on the AppServer.<br />

If the operation returns an ABL error, the object contains the following properties:<br />

• _retVal — A String with the value of any ABL RETURN ERROR string or<br />

ReturnValue property for a thrown AppError object<br />

• _errors — An array of JavaScript objects, each of which contains two properties:<br />

_errorMsg with the ABL error message string and _errorNum with the error<br />

number, for one of possibly many ABL-returned errors<br />

Note: In the current <strong>OpenEdge</strong> release, this array always returns one object only<br />

for the first ABL error (the equivalent of ERROR-STATUS:GET-MESSAGE(1) in<br />

ABL).<br />

This request object property is available only for the following events:<br />

• afterCreate<br />

• afterDelete<br />

• afterFill<br />

• afterInvoke<br />

• afterUpdate<br />

See also: fill( ) method, invocation method, saveChanges( ) method<br />

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

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

Saved successfully!

Ooh no, something went wrong!