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.

Chapter 3: Creating <strong>Mobile</strong> Services<br />

Following is the dsCustomer.i include file for the simple Business entity class.<br />

dsCustomer.i for the simple Business entity class<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 CreditLimit AS DECIMAL<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 />

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