Siebel Object Interfaces Reference > Siebel Programming Tools > The Siebel Script Editor >

Using the Siebel Script Editor


To access the Siebel Script Editor (shown in Figure 1), select an object definition in the Object List Editor and click the right mouse button. If the editor is available from that object type, you can select Edit Scripts from the dialog box. Siebel scripts can be attached to the object types application, applet, business component, and business service.

Figure 1.  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.
  • Compile a custom routine by invoking the Siebel Compiler from the Siebel Script Editor.

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.

Some editing functions are available from the Edit toolbar. The toolbar buttons perform the same functions as the comparably named menu options described previously:

  • Remove extraneous comments.
  • Indent code using tabs instead of spaces.
  • Use short variable and method names.
  • Create subroutines and functions.
Siebel Object Interfaces Reference