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.

getFormFields( ) method<br />

getFormFields( ) method<br />

Reads the schema of the specified table and returns HTML text that defines<br />

corresponding input fields to appear on the form on the detail page. The returned HTML<br />

includes a hidden field for the internal record ID.<br />

Return type: String<br />

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

Syntax<br />

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

table-ref<br />

array<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 />

An array of strings specifying a subset of fields to be returned from the table<br />

schema. If this parameter is omitted, all fields are returned. For example:<br />

uiHelper.eCustomer.getFormFields([ '_id', 'CustNum' , 'Name' ]);<br />

<strong>OpenEdge</strong> <strong>Mobile</strong> provides a default form field template for a jQuery <strong>Mobile</strong><br />

environment. The following code fragment shows the default template values:<br />

<br />

{__label__}<br />

<br />

<br />

As shown above, the default template uses the following substitution parameters:<br />

• {__name__} — The field name as defined in the schema<br />

• {__label__} — The field’s title property as defined in the schema<br />

You can define a template to be used in place of the default by calling<br />

setFieldTemplate( ).<br />

See also: setFieldTemplate( ) method<br />

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