Configuring Siebel eBusiness Applications > Configuring Toolbars and Menus >

Extending Toolbars Using JavaScript


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.

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

    SIEBSRVR_ROOT\webmaster\<Siebel_build_number_in_use>\scripts.

  3. 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.

    The Class property must be the class defined in the JavaScript file, for example JSSBarcodeToolbar.

  2. Add new toolbar items as shown in To add a new toolbar icon to an existing toolbar.
  3. If you are creating a new toolbar, add a <swe: toolbar> tag to the appropriate Web template as shown in How Toolbars are Displayed in Templates.

    The name property in the swe: toolbar tag must be the name of the Toolbar object in Step 5.

  4. Add <swe: toolbaritem> tags to the appropriate swe: toolbar tag as shown in How Toolbars are Displayed in Templates.
Configuring Siebel eBusiness Applications