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.

ABL to JavaScript Data Type Mapping<br />

A<br />

An <strong>OpenEdge</strong> progress.data.JSDO (JSDO) is a JavaScript class instance that<br />

provides the <strong>Mobile</strong> App behavior for a data resource that is implemented in ABL. A<br />

JSDO communicates with the <strong>OpenEdge</strong> AppServer through a <strong>Mobile</strong> service to<br />

marshal ABL data for parameters (and return values) of ABL routines that pass the<br />

following ABL data types: ProDataSets, temp-tables, arrays, and primitive values. The<br />

JSDO provides this ABL data to the <strong>Mobile</strong> App programmer as JavaScript data types.<br />

For more information on ABL data types, see the reference entry on data types in<br />

<strong>OpenEdge</strong> <strong>Development</strong>: ABL Reference. For more information on the format and use<br />

of JavaScript data types, you can review sources on the Web, such as<br />

http://www.w3schools.com/js/js_datatypes.asp.<br />

The following sections present a brief description of JavaScript data types and how<br />

they map to data types in ABL:<br />

• JavaScript data type overview<br />

• Data type mapping between JavaScript and ABL<br />

For more information on JSDOs and how they communicate with an AppServer<br />

through a <strong>Mobile</strong> service, see the “progress.data.JSDO class” section on page 155.<br />

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

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

Saved successfully!

Ooh no, something went wrong!