pp108 : create()

create()


It creates a new business object in the model and binds to the control.

Syntax

Script ControlID. create()


Return Value


Returns the data object created. In case of Transactional Models, the returned object is the<tuple/>created, while in non-transactional models, it is the business object.

Remarks


This method is available only for data-bound controls. It creates the XML for the business object associated with the control and also triggers the xforms-insert event.

In case of a Table control, this method adds a new row and attaches a business object to the row, irrespective of the model (transactional or non-transactional) attached to the Table control.

The following sample code demonstrates how the method can be used.

Example

Script tableID.create()

Applies to


All controls