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.

Chapter 2: Example: A Simple <strong>Mobile</strong> App<br />

Adding the JSDO service to the client<br />

An <strong>OpenEdge</strong> JavaScript data object (JSDO) provides client access to ABL data. A<br />

JSDO service is a coding service in the <strong>Mobile</strong> App Builder that simplifies the mapping<br />

between JSDO data and the HTML elements of a <strong>Mobile</strong> App. For more information on<br />

the JSDO class, see Chapter 4, “Creating <strong>Mobile</strong> Apps using JSDOs”.<br />

To add the JSDO service to the client:<br />

1. In the Project pane, select Create New→ Service.<br />

2. Select the JSDO Service radio button.<br />

3. Click Upload a file and browse to the My<strong>Mobile</strong>Service.json file. The file is<br />

located in your workspace folder in \My<strong>Mobile</strong>\WebContent.<br />

4. Click Select resources.<br />

5. Select My<strong>Mobile</strong>Service.ds.Customer and click Create services.<br />

6. Click Close.<br />

7. In the Project pane, expand My<strong>Mobile</strong>Service.ds.Customer and click on<br />

My<strong>Mobile</strong>Service_ds_Customer_Settings.<br />

8. Change the default value of catalogURI to http://:8980/<br />

My<strong>Mobile</strong>Service/static/mobile/My<strong>Mobile</strong>Service.json<br />

9. Change the default value of serviceURI to<br />

http://:8980/My<strong>Mobile</strong>Service<br />

10. Click Save.<br />

11. In the Project pane, click on home to get back to the UI. Click on the Data tab that<br />

appears to the left of the components.<br />

56 <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!