pp108 : remove()

remove()


This method removes the current business object that is bound to the control. This is applicable to detail view like the Group , Groupbox , or Tab.

In case of a Table control, where a list of business objects is shown, rows which are marked are removed. The deletion is immediately done in the application service.

If the number of business objects in the client is not enough and if there are still business objects available in the application service (decide by the cursor) the a next type method, if available, is sent to the application service.

Syntax

Script ControlID.remove()


Return Value


No value is returned.

Remarks


This method is available only for data-bound controls. This method navigates each object instance, that is each record set in XML, and checks if it can be deleted. If it can be deleted, then it is deleted from the dataset. It also synchronizes the data to the database and displays the next set of available data.

A record is marked for deletion when the check box for that record is selected. This is possible in the case of a Table view or a view with multiple occurrences.

This following code demonstrates how the method can be used:

<registered ui component>.remove()

Applies to


All controls