Configuring Siebel Business Applications > Configuring Menus, Toolbars, and Icons > Configuring Menus and Toolbars >

Using JavaScript to Configure a Toolbar


You can configure a JavaScript toolbar or create a new JavaScript toolbar to take advantage of the functionality that high interactivity provides. For more information, see About Standard Interactivity and High Interactivity.

To use JavaScript to configure a toolbar

  1. Create a JavaScript file.

    You use this file to define a custom JavaScript toolbar class that is a subclass of JSSToolbar.

  2. Copy the JavaScript file to the following directory on the Siebel Server:

    ORACLE_HOME\webmaster\Siebel_build_number\scripts

  3. In Siebel Tools, display the DLL object type and the Class object type.

    For more information, see Displaying Object Types You Use to Configure Siebel CRM.

  4. Create a DLL object:
    1. In the Object Explorer, click DLL.
    2. In the DLLs list, add a new record using values from the following table.
      Property
      Value

      Name

      Enter a name for the DLL object. For example, BarcodeToolbar.

      Project

      Choose a project that is currently locked in the Siebel Repository.

      File Name

      Enter the file name that references the JavaScript file. For example, barcodeToolbar.js.

  5. Create a Class object:
    1. In the Object Explorer, click Class.
    2. In the Classes list, add a new record using values from the following table.
      Property
      Value

      Name

      Enter the name of the class that is defined in the JavaScript file. For example, JSSBarcodeToolbar.

      Project

      Choose the project that you defined in Step 3.

      DLL

      Choose the name of the DLL object that you defined in Step 3.

      High Interactivity Enabled

      1

  6. If you create a new toolbar, then create a Toolbar object.

    Make sure you set the Class property to the class defined in the JavaScript file. For example, JSSBarcodeToolbar. For more information, see Creating a New Toolbar.

  7. Add new toolbar items.

    For more information, see Adding a New Toolbar Icon to a Predefined Toolbar.

  8. If you create a new toolbar, then add a swe:toolbar tag to the appropriate web template.

    Make sure you set the name property that you define in the swe:toolbar tag to the name of the Toolbar object that you created in Step 6. For more information, see Using Web Templates to Configure Toolbars.

  9. Add swe:toolbaritem tags to the swe toolbar tag.

    For more information, see Using Web Templates to Configure Toolbars.

Configuring Siebel Business Applications Copyright © 2013, Oracle and/or its affiliates. All rights reserved. Legal Notices.