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.

setFieldTemplate( ) method<br />

setFieldTemplate( ) method<br />

Specifies the format or all detail forms created during the JavaScript session. These<br />

settings can be overridden for specific forms by the optional fieldTemplate property<br />

of the JavaScript object passed to the setDetailPage( ) method.<br />

Return type: null<br />

Applies to: progress.ui.UIHelper class<br />

Syntax<br />

progress.ui.UIHelper.setFieldTemplate( ‘string’)<br />

string<br />

An HTML string.<br />

It is not necessary to call setFieldTemplate( ) unless:<br />

• You are not using a jQuery <strong>Mobile</strong> environment, or<br />

• You are using a jQuery <strong>Mobile</strong> environment, but you want to change the default<br />

settings (see below)<br />

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

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

progress.ui.UIHelper.setItemTemplate = '<br />

{__label__}<br />

<br />

';<br />

As shown in the preceding example, the template uses the following substitution<br />

parameters:<br />

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

• {__label__} — The title property of the field, as defined by the schema<br />

See also: setDetailPage( ) method<br />

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

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

Saved successfully!

Ooh no, something went wrong!