JSDO properties, methods, and events reference : setDetailPage( ) method
  

setDetailPage( ) method

Specifies the HTML page that contains the form in which item details are displayed.
Return type: null
Applies to: progress.ui.UIHelper class

Syntax

uihelper-ref.setDetailPage( object )
uihelper-ref.table-ref.setDetailPage( object )
uihelper-ref
A reference to a UIHelper instance. You can call the method on uihelper-ref if the JSDO associated with the instance has only a single table reference.
table-ref
A table reference on the JSDO associated with the UIHelper instance, and that table reference has the records to be displayed in the form.
object
A JavaScript object with the following properties:
*name — A string value set to the id attribute of the HTML div (or other) element that contains the form page.
*fieldTemplate — (Optional) A string value set to an HTML string specifying the fields and labels (and their format) that override, for the specified form, the default field template settings or any field template settings specified by the setFieldTemplate( ) method.

Example

The following code fragment sets the form page to the HTML element with an id attribute value of 'cust-detail-page' and a single form field:
dataSet = new progress.data.JSDO( 'dsCustomerOrder' );
uihelper = new progress.ui.UIHelper({ jsdo: dataSet });
uiHelper.eCustomer.setDetailPage({
    name: 'cust-detail-page',
    fieldTemplate: '<input id="{__name__}"></input>'
});

See also:

getFormFields( ) method, getFormRecord( ) method, setFieldTemplate( ) method