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.

addItem( ) method<br />

addItem( ) method<br />

Adds an item based on the working record to a list view. The appearance and content<br />

of the list view item are controlled by a specified template and format, respectively:<br />

• The template is defined by setItemTemplate( ), optionally overridden for this list<br />

view by setListView( ). <strong>OpenEdge</strong> <strong>Mobile</strong> provides a default template suitable<br />

for use in a jQuery <strong>Mobile</strong> environment.<br />

• The format is defined by setListView( ), optionally overridden for this item by<br />

the format parameter.<br />

Return type: null<br />

Applies to: progress.ui.UIHelper class, table reference property (UIHelper)<br />

Syntax<br />

[table-ref.]addItem ( [ ‘format’ ] )<br />

table-ref<br />

format<br />

A table reference on the UIHelper instance. If the JSDO associated with the<br />

UIHelper instance references only a single temp-table, the method can be called<br />

on the UIHelper instance itself.<br />

A string specifying the fields displayed for the list item, overriding the format<br />

defined by setListView( ). For example:<br />

addItem ( '{CustNum}{Name}{State}{Country}' )<br />

See also: setListView( ) method, setItemTemplate( ) method<br />

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

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

Saved successfully!

Ooh no, something went wrong!