Siebel Object Interfaces Reference > Browser Scripting >

Business Service Methods for Browser Script


Table 63 lists a summary of the Business Service methods' syntax.

Table 63. Business Service Methods Syntax Summary
Method
Description
Syntax

GetFirstProperty Method

Retrieves the name of the first property of a business service.

var svc;
var sName = svc.GetFirstProperty();

GetNextProperty Method

Once the name of the first property has been retrieved, retrieves the name of the next property of a business service.

var svc;
var sName = svc.GetNextProperty();

GetProperty Method

Retrieves the value stored in the specified property.

var svc;
var value;
value = svc.GetProperty(name);

InvokeMethod Method

Calls a specialized method or a user-created method on the business service.

var svc;
var oPropSet =theApplication().NewPropertySet();
oPropSet = svc.InvokeMethod(methodName, inputPropSet);

Name Method

Returns the name of the business service.

var svc;
var name;
name = svc.Name();

PropertyExists Method

Returns a Boolean value indicating whether the property specified in the argument exists.

var svc;
var bool;
bool = svc.PropertyExists(name);

RemoveProperty Method

Removes a property from a business service.

var svc;
svc.RemoveProperty(name);

SetProperty Method

Assigns a value to a property of a business service.

var svc;
svc.SetProperty(name, value);

Table 64 lists a summary of the Business Service Events syntax.

Table 64. Business Service Events Syntax Summary
Method
Description
Syntax

Service_InvokeMethod Event

Called when a business service is accessed.

Service_InvokeMethod(methodName,input, output);

Service_PreCanInvokeMethod Event

Called before the PreInvokeMethod, allowing the developer to determine whether or not the user has the authority to invoke the business service method.

Service_PreCanInvokeMethod (methodName);

Service_PreInvokeMethod Event

Called before a specialized method is invoked on a business service.

Service_PreInvokeMethod(methodName, inputPropSet,outputPropSet);

Siebel Object Interfaces Reference