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 4: Creating <strong>Mobile</strong> Apps using JSDOs<br />

Getting started with other HTML coding tools<br />

If you do not need the support for the <strong>Mobile</strong> App Builder, or have other client<br />

requirements, you can also build the <strong>Mobile</strong> App using the basic HTML and JavaScript<br />

coding tools of Progress Developer Studio for <strong>OpenEdge</strong>. For this purpose, <strong>OpenEdge</strong><br />

<strong>Mobile</strong> provides a JSDO helper class, progress.ui.UIHelper, to map JSDO data to<br />

HTML elements using supported UI frameworks, such as JQuery <strong>Mobile</strong>.<br />

The UIHelper class assists in building <strong>Mobile</strong> applications with a list view and a detail<br />

page. It can be used in the following scenarios and JavaScript frameworks:<br />

• JQuery <strong>Mobile</strong><br />

• JQuery <strong>Mobile</strong> using the <strong>Mobile</strong> App Builder<br />

• iUI<br />

• User interface based on HTML and JavaScript where list views are built directly<br />

using the element<br />

Figure 5 shows a sample screen generated using the UIHelper class<br />

Figure 5: Sample display using the UIHelper class<br />

Using the UIHelper class<br />

The UIHelper is instantiated to work with a JSDO instance. The setListView( )<br />

method is used to specify the HTML element for the list ( element). The<br />

clearItems( ) and addItem( ) methods are used to build the list view. The<br />

showListView( ) method is used to show the list view on the screen.<br />

Note: For complete information on the methods of the UIHelper class, see<br />

Appendix C, “<strong>OpenEdge</strong> JavaScript Class Properties, Methods, and Events<br />

Reference.”<br />

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