About Using Script Assist
Script Assist is part of the Script Editor. To help you develop a script, it inspects object definitions, and then makes information about these object definitions available to you. It includes the following functionality:
-
Syntax highlight. Uses color to highlight reserved words, data types, operators, and other syntax in Siebel VB and Siebel eScript script. You cannot modify these colors. The following table lists the colors that it uses and the item of code to which each color corresponds.
Item In the Code Color Name Hex Color Code Reserved word or keyword
Dark Purple
#708
String literal
Dark Red
#a11
Number literal
Dark Green
#164
RegExp literal
Orange
#f50
Comment
Brown
#219
Global Property
Ultramarine-1
#219
Function. For Siebel VB only
Ultramarine-2
#30a
Declaration for Siebel eScript
Blue
#00f
Declaration for Siebel VB
Black
#000
Variable for Siebel eScript
Cobalt Blue
#05a
Variable for Siebel VB
Black
#000
Method list. Displays a list of methods and properties that are available for an object. For more information, see Icons that the Script Assist Window Contains.
Repository inspection. Inspects objects and object types in the repository without requiring you to type a string literal. This functionality results in fewer mistakes in your script. It also understands predefined constants for a business component method.
Favorites. Uses italics to indicate the most frequently used object, method, or property name in the Script Assist window. Favorites exist for only a single Web Tools session. When you log out of Web Tools, it clears these favorites. If you create a new function, then you must add it to the declarations, and then save the script modifications. If you do not do this, then Web Tools does not display the function as a favorite.
Script libraries. Allows you to call a business service function after you declare the business service. You do not declare property sets or make an InvokeMethod call. A script library helps you develop code that is reusable and modular. For more information, see Using Script Libraries with eScript.
-
Auto complete. Automatically completes an entry when you enter a minimum number of unique characters in the Script Assist window and press
Ctrl + Space
. For example, if you enterThe
and pressCtrl+Space
, then Web Tools automatically enters the wordTheApplication
. Auto indent. Maintains a running indent. If you press the Return key or the Enter key, then it inserts spaces and tabs that left-justifies the code.
Tool tips. Allows you to view descriptions of the method arguments that you use.
Includes child scripts. Script Assist can parse a script that you write on a business component, applet, or business service. You can use the Application drop-down list to choose the Siebel application that includes the child script. Script Assist displays the scripts that are written on this application object in the Script Assist window.
Includes scripts you write in the general section. A script that you write in the general section of the script explorer window is available in the Script Assist window. For example, if you write a helper function named Helper in the general section of the current script, and if you start Script Assist, then it includes Helper in a pop-up window.