Siebel Object Interfaces Reference > Browser Scripting >

Business Component Methods for Browser Script


Table 60 lists a summary of the Business Component methods' syntax.

Table 60. Business Component Methods Syntax Summary
Method
Description
Syntax

BusObject Method

Returns the business object that contains the business component.

var busComp;
var busObject;
busObject = busComp.BusObject();

GetFieldValue Method

Returns a value for the field specified in the argument.

var busComp;
var value;
value = busComp.GetFieldValue(fieldName);

GetFormattedFieldValue Method

Returns a formatted value for the field specified in the argument.

var busComp;
var sValue;
sValue = busComp.GetFormattedFieldValue(fieldName);

GetSearchExpr Method

Returns the current search expression.

var busComp;
var sExpr;
sExpr = busComp.GetSearchExpr();

GetSearchSpec Method

Returns the current search specification for the field specified in the argument.

var busComp;
var sSpec;
sSpec = busComp.GetSearchSpec(fieldName);

Name Method

Returns the name of the business component.

var busComp;
var sName;
sName = busComp.Name();

SetFieldValue Method

Assigns a new value to the named field for the current row of the business component.

var busComp;
busComp.SetFieldValue(fieldName, fieldValue);

SetFormattedFieldValue Method

Accepts the field value in the current local format and assigns the new value to the named field for the current row of the business component.

var busComp;
busComp.SetFormattedFieldValue(fieldName, fieldValue);

WriteRecord Method

Commits to the database any changes made to the current record.

var busComp;
busComp.WriteRecord();

Table 61 lists a summary of the Business Component Events syntax.

Table 61. Business Component Events Syntax Summary
Event
Description
Syntax

BusComp_PreSetFieldValue Event

Called when a value is pushed down into the business component from the user interface. This Browser Script event is not invoked if the 'Immediate Post Changes' property of the Business Component field is set to TRUE.

BusComp_PreSetFieldValue(fieldName, value);

Siebel Object Interfaces Reference