Using Siebel Tools > Siebel Script Editors >

Using the Siebel Script Editor


Siebel scripts can be attached to the object types application, applet, and business component. Figure 20 displays the Siebel Script Editor. To access the Script Editor, see To access the Siebel Script Editor.

Figure 20. Siebel Script Editor
Click for full size image

The Siebel Script Editor is a window-based editor similar to the Windows Notepad editor. The Editor's interface consists of a title bar, a drop-down list for specifying an object, a drop-down list for specifying an event, and a text entry window. There are vertical and horizontal scroll bars for scrolling within the entry region.

When using the Siebel Script Editor, you can do the following:

  • Cut, copy, and paste the text from one location to another location within or from outside the Editor. When pasting into the Editor, avoid having two code blocks with the same name by placing the code between the function <Name> {} (eScript) or Sub <Name> / End Sub block (VB).
  • Import and export Siebel scripts.
  • Associate a given Siebel script with a predefined object event, such as a PreSetFieldValue event for a Business Component.
  • Debug a custom routine by invoking the Siebel Debugger. For more information, see About the Siebel Debugger.
  • Compile a custom routine by invoking the Siebel Compiler from the Siebel Script Editor. For more information, see Invoking Compiler and Run-Time Engine.

The editor functions can be accessed from the title bar menus, keyboard shortcuts, and the Edit toolbar. The following are File menu options pertaining to Siebel VB and Siebel eScript:

  • Import. Imports Siebel scripts.
  • Export. Exports Siebel scripts.
  • Save. Saves a Siebel script. Be sure to save your scripts before exiting the editor.
  • Exit. Closes the Siebel Script Editor window.

The following are Edit menu options pertaining to the Siebel Editor:

  • Cut. Deletes selection and saves it to the Clipboard.
  • Copy. Copies selection to the Clipboard.
  • Paste. Copies what is on the Clipboard to the selected area.
  • Delete. Deletes selection.
  • Select All. Selects the entire script.
  • Find. Displays the Find in Script dialog box. You can search for text or white space.
  • Replace. Displays the Replace in Script dialog box. You can search and replace text or white space.

To access the Siebel Script Editor

  1. In the Object List Editor, select a scriptable object type, such as Applet.
  2. Do one of the following:
    • Right click and then select either Edit Server Script, or Edit Browser script.
    • From the application-level menu, select View > Editors > Server Script Editor or Browser Script Editor.
Using Siebel Tools