6Browser Script Quick Reference
Browser Script Quick Reference
This chapter describes summary information for Browser Script. It includes the following topics:
For more information, see Browser Script.
Applet Methods for Browser Script
The following table describes a summary of the applet methods you can use in Browser Script.
Table Summary of Applet Methods for Browser Script
Method | Description | Format |
---|---|---|
Returns a string that contains the name of the current Web template mode. |
|
|
Returns the name of the business component that an applet references. |
|
|
Returns the name of the business object for the business component that an applet references. |
|
|
Returns the name of a control that is a Document Object Model element. |
|
|
Returns the name of a control. |
|
|
Calls a method. |
|
|
Returns the name of an applet. |
|
Applet Events For Browser Script
The following table describes a summary of the applet events you can use in Browser Script.
Table Summary of Applet Events for Browser Script
Event | Description | Format |
---|---|---|
Starts if the user uses an applet to modify data in a field. |
|
|
Starts if the user moves to a different record or view. |
|
|
Starts after a specialized method or after a custom method is called. |
|
|
Starts after Siebel CRM loads an applet and after it displays data. |
|
|
Siebel CRM calls this event immediately before it calls a specialized method on an applet. |
|
Application Methods for Browser Script
The following table describes a summary of the application methods you can use in Browser Script. It does not include object interface methods that Siebel CRM does not call directly from an application object instance. For information about methods it calls with the InvokeMethod method on the application object, see LoadObjects Method for an Application.
Table Summary of Application Methods for Browser Script
Method | Description | Format |
---|---|---|
Returns the name of the active applet. |
|
|
Returns the name of the business component that the active applet references. |
|
|
Returns the name of the business object for the business component that the active applet references. |
|
|
Returns the name of the active view. |
|
|
Returns the name of an applet. |
|
|
Returns the name of an attribute in a user profile. |
|
|
Locates a business service. If this business service is not already running, then Siebel CRM starts it. |
|
|
Calls a method. |
|
|
Returns the name of the Siebel application. |
|
|
Creates a new property set. |
|
|
Personalization uses this method to set a value for an attribute in a user profile. |
|
|
Allows you to display a dialog box with the cursor in the default state. |
|
|
Displays a modal dialog box that includes a message. |
|
Application Events for Browser Script
The following table describes a summary of the application events you can use in Browser Script.
Table Summary of Application Events for Browser Script
Event | Description | Format |
---|---|---|
Called after Siebel CRM calls a specialized method. |
|
|
Called after Siebel CRM calls a specialized method. |
|
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.
Table Summary of Business Component Methods for Browser Script
Method | Description | Format |
---|---|---|
Returns the name of the business object that the business component references. |
|
|
Returns the value of a field from the current record of a business component. |
|
|
Returns a field value that is in the same format that the Siebel client uses. |
|
|
Returns the current search expression that is defined for the business component. |
|
|
Returns the search specification for a field. |
|
|
Calls a method. |
|
|
Returns the name of a business component. |
|
|
Sets a new value for a field in the current record of a business component. |
|
|
Sets the new value to a field for the current record of a business component. |
|
|
Reverses any unsaved modifications that Siebel CRM has made on a record. |
|
|
Saves to the Siebel database any modifications made to the current record. |
|
Business Component Events for Browser Script
The following table describes a summary of the business component events you can use in Browser Script.
Table Summary of Business Component Events for Browser Script
Event | Description | Format |
---|---|---|
Called if the user modifies a value in the Siebel client. |
|
Business Object Methods for Browser Script
The following table describes a summary of the business object methods you can use in Browser Script.
Table Summary of Business Object Methods for Browser Script
Method | Description | Format |
---|---|---|
Returns the name of a business component. |
|
|
Returns the name of a business object. |
|
Business Service Methods for Browser Script
The following table describes a summary of the business service methods you can use in Browser Script.
Table Summary of Business Service Methods for Browser Script
Method | Description | Format |
---|---|---|
Returns the name of the next property of a business service. |
|
|
Returns the value of a property. |
|
|
Calls a method on a business service. |
|
|
Returns the name of a business service. |
|
|
Returns a Boolean value that indicates if the property that the argument identifies exists. |
|
|
Removes a property from a business service. |
|
|
Sets a value for a property of a business service. |
|
Business Service Events for Browser Script
The following table describes a summary of the business service events you can use in Browser Script.
Table Summary Business Service Events for Browser Script
Method | Description | Format |
---|---|---|
Called after Siebel CRM calls the InvokeMethod method on a business service. |
|
|
Called before Siebel CRM calls the PreInvokeMethod event. It allows you to determine if the user possesses the authority to call the business service method. |
|
|
Called before Siebel CRM calls a method on a business service. |
|
Property Set Methods for Browser Script
The following table describes a summary of the property set methods you can use in Browser Script.
Table Summary of Property Set Methods for Browser Script
Method | Description | Format |
---|---|---|
Adds a child property set to a property set. |
|
|
Returns a copy of a property set. |
|
|
Returns the index number of a child property set. |
|
|
Returns the number of child property sets that exist for a parent property set |
|
|
Returns the name of the first property in a property set. |
|
|
Returns the name of the next property in a property set. |
|
|
Returns the value of a property. |
|
|
Returns the number of properties that exist in the current level in the hierarchy. |
|
|
Returns the value of the type attribute of a property set. |
|
|
Returns the value of the value attribute of a property set. |
|
|
Inserts a child property set in a parent property set at a specific location. |
|
|
Returns a Boolean value that indicates if the property that the argument identifies exists. |
|
|
Removes a child property set from a parent property set. |
|
|
Removes a property from a property set. |
|
|
Removes every property and child property set from a property set. |
|
|
Sets a value in the property of a property set. |
|
|
Sets the value for the type attribute of a property set. |
|
|
Sets the value for the value attribute of a property set. |
|
Control Methods for Browser Script
The following table describes a summary of the control methods you can use in Browser Script.
Table Summary of Control Methods for Browser Script
Method | Description | Format |
---|---|---|
Returns the name of the applet where a control resides. |
|
|
Returns the name of the business component that an applet references. The control resides in this applet. |
|
|
Returns the value of the property of a control. |
|
|
Returns the value of a control. |
|
|
Returns the name of a control. |
|
|
Sets the visual properties of a control. |
|
|
Sets the contents of a control. |
|
Document Object Model Events You Can Use
This topic describes Document Object Model events you can use.
Document Object Model Events
The following information lists the Document Object Model events. For each control, you can use the following events:
OnFocus
OnBlur
Note that scriptable events are not available for List Column and Tree controls.
Table Document Object Model Events
Control | Siebel Control Type | Description |
---|---|---|
Button |
Native |
None |
CheckBox |
Native |
Rendered as Input Type is CHECKBOX. |
Link |
Native |
Rendered through paired anchor tags or as INPUT TYPE is TEXT in edit mode. |
List Column |
Native |
None |
Mailto |
Native |
Rendered as anchor tags with HREF is mailto or as INPUT TYPE is TEXT in Edit mode. |
MiniButton |
Native |
None |
Password |
Native |
Rendered as Input Type is password. |
Text |
Native |
Rendered as INPUT TYPE is TEXT or as SELECT if attached to a picklist. If there is a pop-up window, then Siebel CRM renders it as an edit box plus a button. |
TextArea |
Native |
Rendered as TEXTAREA. |
Tree |
Native |
None |
URL |
Native |
Rendered through paired anchor tags with an HREF equal to the underlying field value or as INPUT TYPE is TEXT in edit mode. |
You cannot access a Siebel object from a Document Object Model event. Business components and applets are examples of Siebel objects.
You can typically call code in the General section from anywhere in an object. However, you cannot call code written in the General section from a Document Object Model event.
To associate a script with the control_OnClick event, use the Applet_PreInvokeMethod event that is associated with the applet. For more information, see Using a MiniButton Control to Call a Custom Method.