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.

display( ) method<br />

display( ) method<br />

Copies the field values of a given record to corresponding fields in the current HTML<br />

document for display in the form on the detail page. The record is the working record<br />

of a temp-table referenced in the local storage of a JSDO that is associated with a<br />

UIHelper instance.<br />

After execution, any working records previously set before the method executed<br />

remain as the working records.<br />

Return type: null<br />

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

Syntax<br />

[table-ref.]display ( )<br />

table-ref<br />

A table reference on a 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. The table must have a working record.<br />

If a form field’s id attribute (or dsid attribute, if <strong>OpenEdge</strong> <strong>Mobile</strong> App Builder was<br />

used to design the form), as specified by the HTML DOM, matches the name of a<br />

record field, the form field displays the value of the record field. If no HTML field<br />

corresponds to a given record field, the value of that field is not displayed.<br />

The following code fragment shows the display( ) method displaying each record of<br />

an eCustomer temp-table in JSDO local storage to its respective row of a previously<br />

established jQuery listview:<br />

dataSet = new progress.data.JSDO( 'dsCustomerOrder' );<br />

uihelper = new progress.ui.UIHelper({ jsdo: dataSet });<br />

uihelper.eCustomer.setListView({<br />

name:'listview',<br />

format: '{CustNum}{Name}{State}',<br />

autoLink: true<br />

});<br />

See also: getFormFields( ) method<br />

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

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

Saved successfully!

Ooh no, something went wrong!