pp108 : getBusinessObject()

getBusinessObject()


It retrieves the data or business object.

Syntax

Script o BusinessObject = ControlID.getBusinessObject() ;


Return Value


Returns the business object.

Remarks


The method is available and applicable only for controls that are data-bound and have a Reference property set for them. In case of other controls, accessing this method will cause a runtime error.

Note:
If the reference property of a Table control is set to the business object, the getBusinessObject() method will not be available for use. This method is available if the reference is set to a part of the business object that returns zero or more entities.

Example
//alert the business element name from data
alert(input10.getBusinessObject().getCurrent().nodeName);

Applies to


Input, Password, Output, Table, TabGroup, Code Snippet, Textarea, Check, Radio, Select, List, Group, Button, Image