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.

Creating an include file<br />

Creating an include file<br />

Before creating a new Business Entity for the <strong>Mobile</strong> service, you must create an<br />

include file that contains a temp table that describes the schema of the Sports2000<br />

database.<br />

To create an Include file:<br />

1. Select File→ New→ ABL Include.<br />

2. Select a container and name the file dsCustomer.i. Click Finish.<br />

3. In the body of the include file, copy and paste the following code:<br />

DEFINE TEMP-TABLE eCustomer NO-UNDO BEFORE-TABLE beCustomer<br />

FIELD CustNum AS INTEGER<br />

FIELD Name AS CHARACTER FORMAT "X(20)"<br />

FIELD Address AS CHARACTER<br />

FIELD Phone AS CHARACTER<br />

FIELD SalesRep AS CHARACTER<br />

FIELD Balance AS DECIMAL<br />

FIELD State AS CHAR<br />

FIELD numOrders AS INT<br />

INDEX CustNum IS UNIQUE PRIMARY CustNum<br />

INDEX Name NAME.<br />

DEFINE DATASET dsCustomer<br />

FOR eCustomer.<br />

4. Save the file in your working directory and close the file.<br />

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

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

Saved successfully!

Ooh no, something went wrong!