The templates use the following substitution parameters:
Used when building the list items by calling addItem( ):
{__id__} — The internal ID of the record
{__page__} — The name attribute of the object passed as a parameter to setDetailPage( ), which defines the detail page
{__format__} — The format attribute of the object passed as a parameter to setListView( ) or (optionally) to addItem( ), which identifies the fields to be included for each item in the list view
Used for the HTML text returned when calling getFormFields( ):
{__name__} — The field name in a table as defined by the name property in the catalog
{__label__} — The label of the field in a table as defined by the title property in the catalog
The properties itemTemplate and the fieldTemplate can be used to change the template for a specific UIHelper instance.
The class-level methods progress.ui.UIHelper.setItemTemplate( ) and progress.ui.UIHelper.setFieldTemplate( ) can be used to change the template to be used by the UIHelper for a JavaScript session.