8Siebel eScript Quick Reference
Siebel eScript Quick Reference
This chapter describes summary information for Siebel eScript. It includes the following topics:
The ST eScript engine is the default Siebel eScript scripting engine in Siebel CRM version 8.0 and later. For information about format differences between it and the traditional (T) engine, see Siebel eScript Language Reference.
Applet Methods for Siebel eScript
The following table describes a summary of the applet methods you can use with Siebel eScript.
Table Summary of Applet Methods for Siebel eScript
Method | Description | Format |
---|---|---|
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. |
|
|
Calls a specialized method. |
|
|
Returns the name of an applet. |
|
Web Applet Events for Siebel eScript
The following table describes a summary of web applet events you can use with Siebel eScript.
Table Summary of Web Applet Events for Siebel eScript
Event | Description | Format |
---|---|---|
Siebel CRM calls this event after a specialized method on the Web applet runs. |
|
|
Siebel CRM calls this event immediately after it loads an applet. |
|
|
Called before Siebel CRM calls the PreInvokeMethod event, allowing you to determine if the user possesses the authority to call the applet method. |
|
|
Siebel CRM calls this event before it calls a specialized method for the Web applet or a custom method that it calls through the oWebApplet object of the InvokeMethod method. |
|
Application Methods for Siebel eScript
The following table describes a summary of application methods you can use with Siebel eScript. It does not include object interface methods that Siebel CRM does not call directly from an application instance. For information about methods that Siebel CRM calls with the InvokeMethod method on the application, see LoadObjects Method for an Application.
Table Summary of Application Methods for Siebel eScript
Method | Description | Format |
---|---|---|
Returns the name of the business object that the active view references. |
|
|
Returns the name of the active view. |
|
|
Returns the currency code that is associated with the division of the user position. |
|
|
Creates a new instance of a business object. |
|
|
Returns the name of the Siebel application. |
|
|
Locates a business service. If this business service is not already running, then Siebel CRM starts it. |
|
|
Returns the shared global variables. |
|
|
Activates a view. |
|
|
Calls a method. |
|
|
Returns the login ID of the user who started the Siebel application. |
|
|
Returns the login name of the user who started Oracle’s Siebel application. |
|
|
Creates a new property set. |
|
|
Returns the position ID of the user position. |
|
|
Returns the name of the current user position. |
|
|
Sends a scripting error message to the browser. To determine the error text, Siebel CRM uses a key to look up the current language. |
|
|
Sends a scripting error message to the browser. |
|
|
Sets the active position to a position ID. |
|
|
Sets the active position to a position name. |
|
|
Personalization uses this method to set a value for an attribute in a user profile. |
|
|
Sets a shared global variable. |
|
|
Appends a message to the trace file. |
|
|
Turns off tracing. |
|
|
Turns on tracing. |
|
Application Events for Siebel eScript
The following table describes a summary of application events you can use with Siebel eScript.
Table Summary of Application Events for Siebel eScript
Event | Description | Format |
---|---|---|
Called before the Siebel application exits. |
|
|
Called after a specialized method is called. |
|
|
Called after the user navigates to a view. |
|
|
Called before Siebel CRM calls a specialized method. |
|
|
Called before the Siebel application displays the view where the user navigates. |
|
|
Called when the Siebel client starts. |
|
Business Component Methods for Siebel eScript
The following table describes a summary of business component methods you can use with Siebel eScript. It does not include object interface methods that Siebel CRM does not call directly from a business component. For information about methods that Siebel CRM calls with the InvokeMethod method on a business component, see Business Component Invoke Methods.
Table Summary of Business Component Methods for Siebel eScript
Method | Description | Format |
---|---|---|
Activates a field. |
|
|
Activates multiple fields. |
|
|
Creates a new many-to-many relationship for the parent object through an association business component. |
|
|
Returns the name of the business object that the business component references. |
|
|
Clears the current query but does not clear sort specifications on a business component. |
|
|
Deactivates the fields that are currently active from the SQL query statement of a business component. |
|
|
Removes the current record from a business component. |
|
|
Returns a set of business component records. |
|
|
Returns a set of business component records. Allows you to control the number of records Siebel CRM returns. |
|
|
Moves the record pointer to the first record in a business component, making that record the current record. |
|
|
Makes the first record of the multiple selection in a business component active. |
|
|
Returns the name of the association business component. |
|
|
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 a value for each field specified in a property set. |
|
|
Returns the multivalue group business component that is associated a business component field. |
|
|
Returns the name of a search specification. |
|
|
Returns the name of the pick business component that is associated with a field in the current business component. |
|
|
Returns the current search expression that is defined for a business component. |
|
|
Returns the search specification that is defined for a business component. |
|
|
Returns the sort specification for a business component. |
|
|
Returns the value of a user property. |
|
|
Returns the visibility mode for a business component. |
|
|
Calls a method. |
|
|
Moves the record pointer to the last record in a business component. |
|
|
Returns the name of a business component. |
|
|
Adds a new record to a business component. |
|
|
Moves the record pointer to the next record in a business component, making that record the current record. |
|
|
Makes the next record of the current multiple selection the active record. |
|
|
Returns the name of a parent business component. |
|
|
Places the currently chosen record in a pick business component into the appropriate fields of the parent business component. |
|
|
Moves the record pointer to the previous record in a business component, making that record the current record. |
|
|
Refines a query. |
|
|
Sets a new value in a field for the current record of a business component. |
|
|
Sets a new value in a field in the current record of a business component. It accepts the field value in the current local format. |
|
|
Sets new values in the fields of the current record of a business component. |
|
|
Sets a named search specification on a business component. |
|
|
Sets a search expression for a business component. |
|
|
Sets the search specification for a business component. |
|
|
Sets the sort specification for a business component. |
|
|
Sets the value of a user property in a business component. |
|
|
Sets the visibility type for a business component. |
|
|
Reverses any unsaved modifications made to the record. |
|
|
Saves to the Siebel database any modifications made to the current record. |
|
Business Component Events for Siebel eScript
The following table describes a summary of business component events you can use with Siebel eScript.
Table Summary of Business Component Events for Siebel eScript
Event | Description | Format |
---|---|---|
Called if the user adds a business component record to create an association. |
|
|
Called if a business component record becomes the current record. |
|
|
Called if the user copies a business component record, and if the user makes this record the active record. |
|
|
Called if the user deletes a business component record. |
|
|
Called if Siebel CRM calls the InvokeMethod method on a business component. |
|
|
Called if the user creates a business component record, and if the user makes this record the active record. You can use this event to set up default values for a field. |
|
|
Called if Siebel CRM detects that the user is about to add a business component record to create an association. |
|
|
Called if Siebel CRM detects that the user is about to copy a business component record. You can use this event to perform precopy validation. |
|
|
Called if Siebel CRM detects that the user is about to delete a business component record. You can use this event to prevent the deletion or to perform any actions before Siebel CRM deletes the record. |
|
|
Called if a user accesses a business component field. |
|
|
Called if Siebel CRM calls a specialized method on a business component. Siebel CRM calls it before it calls this specialized method. |
|
|
Called if Siebel CRM detects that the user is about to create a new business component record. You can use this event to perform preinsert validation. |
|
|
Siebel CRM calls the BusComp_PreQuery event before it runs a query. You can use this event to modify the search criteria or to restrict Siebel CRM from running certain queries. |
|
|
Siebel CRM calls this event after the user modifies a field value or after a call to the SetFieldValue method occurs. This event allows you to use custom validation before Siebel CRM applies predefined validation. |
|
|
Called before Siebel CRM writes a record to the Siebel database. |
|
|
Called after Siebel CRM completes a query but before it displays the query results. |
|
|
Called if Siebel CRM sends a value to a business component from the Siebel client or through a call to the SetFieldValue method. |
|
|
Called after Siebel CRM saves the record to the Siebel database. |
|
Business Object Methods for Siebel eScript
The following table describes a summary of business object methods you can use with Siebel eScript.
Table Summary of Business Object Methods for Siebel eScript
Method | Description | Format |
---|---|---|
Returns the name of a business component instance. |
|
|
Returns the name of a business object. |
|
Business Service Methods for Siebel eScript
The following table describes a summary of business service methods you can use with Siebel eScript.
Table Summary of Business Service Methods for Siebel eScript
Method | Description | Format |
---|---|---|
Returns the name of the first property of a business service. |
|
|
Returns the name of the next property of a business service. |
|
|
Returns the value of a property. |
|
|
Returns the name of a business service. |
|
|
Calls a method. |
|
|
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 Siebel eScript
The following table describes a summary of business service events you can use with Siebel eScript.
Table Summary of Business Service Events for Siebel eScript
Method | Description | Format |
---|---|---|
Siebel CRM calls this event after it calls the InvokeMethod method. |
|
|
Siebel CRM calls this event before it calls the PreInvokeMethod event. This configuration allows you to determine if the user possesses the authority to call the business service method. |
|
|
Siebel CRM calls this event before it calls a specialized method on a business service. |
|
Property Set Methods for Siebel eScript
The following table describes a summary of property set methods you can use with Siebel eScript.
Table Summary of Property Set Methods for Siebel eScript
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. |
|
Miscellaneous Methods for Siebel eScript
The following table describes a summary of miscellaneous methods you can use with Siebel eScript.
Table Summary of Miscellaneous Methods for Siebel eScript
Method | Description | Format |
---|---|---|
Returns the name of the application object. |
|