Business Component Methods for Browser Script

The following table describes a summary of the business component methods you can use in Browser Script. It does not include object interface methods that Siebel CRM does not call directly from a Business Component object instance. For information about methods that it calls with InvokeMethod method on the Business Component object, see Business Component Invoke Methods.

Method Description Format

BusObject Method for a Business Component

Returns the name of the business object that the business component references.

var busComp;

var busObject;

busObject = busComp.BusObject();

GetFieldValue Method for a Business Component

Returns the value of a field from the current record of a business component.

var busComp;

var value;

value = busComp.GetFieldValue(fieldName);

GetFormattedFieldValue Method for a Business Component

Returns a field value that is in the same format that the Siebel client uses.

var busComp;

var sValue;

sValue = busComp.GetFormattedFieldValue (fieldName);

GetSearchExpr Method for a Business Component

Returns the current search expression that is defined for the business component.

var busComp;

var sExpr;

sExpr = busComp.GetSearchExpr();

GetSearchSpec Method for a Business Component

Returns the search specification for a field.

var busComp;

var sSpec;

sSpec = busComp.GetSearchSpec(fieldName);

InvokeMethod Method for a Business Component

Calls a method.

var busComp;

var sReturn;

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

Name Method for a Business Component

Returns the name of a business component.

var busComp;

var sName;

sName = busComp.Name();

SetFieldValue Method for a Business Component

Sets a new value for a field in the current record of a business component.

var busComp;

busComp.SetFieldValue(fieldName, fieldValue);

SetFormattedFieldValue Method for a Business Component

Sets the new value to a field for the current record of a business component.

var busComp;

busComp.SetFormattedFieldValue (fieldName, fieldValue);

UndoRecord Method for a Business Component

Reverses any unsaved modifications that Siebel CRM has made on a record.

var busComp;

busComp.UndoRecord();

WriteRecord Method for a Business Component

Saves to the Siebel database any modifications made to the current record.

var busComp;

busComp.WriteRecord();