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
- Create a JavaScript file.
You use this file to define a custom JavaScript toolbar class that is a subclass of JSSToolbar.
- Copy the JavaScript file to the following directory on the Siebel Server:
ORACLE_HOME\webmaster\Siebel_build_number \scripts
- 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.
- Create a DLL object:
- In the Object Explorer, click DLL.
- In the DLLs list, add a new record using values from the following table.
|
|
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 . |
- Create a Class object:
- In the Object Explorer, click Class.
- In the Classes list, add a new record using values from the following table.
|
|
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 |
- 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.
- Add new toolbar items.
For more information, see Adding a New Toolbar Icon to a Predefined Toolbar.
- 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.
- Add swe:toolbaritem tags to the swe toolbar tag.
For more information, see Using Web Templates to Configure Toolbars.
|