Siebel Object Interfaces Reference > Browser Scripting >

Business Component Methods for Browser Script


Table 75 lists a summary of the business component methods' syntax.

Table 75 does not include methods that are not invoked directly from a Business Component object instance. For information on methods that are called with InvokeMethod on the Business Component object, see InvokeMethod Methods for the Business Component Object.

Table 75. 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);

InvokeMethod Method

Calls the specialized method named in the argument.

var BusComp;
var sReturn;
sReturn = BusComp.InvokeMethod(methodName, methodArg1, methodArg2,..., methodArgn);

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();

Siebel Object Interfaces Reference Copyright © 2008, Oracle. All rights reserved.