Siebel Tools Reference > Logical User Interface Objects Configuration > Defining Toolbars and Menus >

Using JavaScript to Extend Toolbars


You can take advantage of the functionality of high interactivity by extending JavaScript toolbars and creating new ones. Creating new JavaScript files to extend JavaScript toolbars is necessary if you need more toolbar icon types than the standard ones (Link, Button, Label, and Separator in Siebel 7.5).

To extend a toolbar using JavaScript

  1. Create a JavaScript file to define an extended JavaScript toolbar class that is a subclass of JSSToolbar.
  2. Copy the JavaScript file to
  3. SIEBSRVR_ROOT\webmaster\<Siebel_build_number_in_use>\scripts.

  4. In Siebel Tools, create a DLL object as shown in the following table.

Field
Value
Name
User-defined name for the DLL object, for example BarcodeToolbar
Project
A currently locked project in the Siebel Repository
File Name
File name that references the JavaScript file, for example barcodeToolbar.js

  1. Create a Class object as shown in the following table.

Field
Value
Name
Name of the class defined in the JavaScript file, for example JSSBarcodeToolbar
Project
The locked project used in Step 3
DLL
Name of the DLL object created in Step 3
High Interactivity Enabled
1

  1. If you are creating a new toolbar, create a Toolbar object, as shown in To define a new toolbar.
  2. The Class property must be the class defined in the JavaScript file, for example JSSBarcodeToolbar.

  3. Add new toolbar items as shown in To add a new toolbar icon to an existing toolbar.
  4. If you are creating a new toolbar, add a <swe: toolbar> tag to the appropriate Web template as shown in HTML and JavaScript Toolbars.
  5. The name property in the swe: toolbar tag must be the name of the Toolbar object in Step 5.

  6. Add <swe: toolbaritem> tags to the appropriate swe: toolbar tag as shown in HTML and JavaScript Toolbars.

 Siebel Tools Reference, Version 7.5, Rev. A 
 Published: 18 April 2003