Siebel Tools Reference > Logical User Interface Objects Configuration >

Defining Toolbars and Menus


You can create new toolbars for an application by defining a toolbar object and modifying the appropriate Siebel Web templates to expose the new object in the user interface. You can also add new icons to existing toolbars.

To define a new toolbar

  1. In Types view in the Object Explorer, double-click the Toolbar object type.
  2. Click to the left of a row in the Object List Editor, and then choose Edit > New Record.
  3. Specify the name of the new toolbar in the Name property of the new object definition.
  4. To expose the toolbar to the user interface, you need to add a specific tag to the Container Page or one of its child templates that you are using.
  5. For detailed information on templates and tags, see Siebel Developer's Reference.

To add a new toolbar icon to an existing toolbar

  1. Verify that the bitmap image you want to use on the toolbar icon surface currently exists as a child bitmap object definition of the bitmap category object definition named Command Icons.
  2. If it does not exist, create a bitmap object definition in this bitmap category as described in Associating Images With Siebel Objects. If it does exist, note the name of the bitmap object definition.

  3. Verify that the method you want for this toolbar icon to invoke currently exists, or add a Siebel VB or eScript script to the application PreInvokeMethod.
  4. You need to write an If or Case statement based on MethodName and write the instructions for that MethodName within the If or Case statement.

    You also need to change the last line of PreInvokeMethod to CancelOperation (from ContinueOperation).

  5. Navigate to the Command object type in the Object Explorer, and add a new Command object definition in the Object List Editor. Specify the HTML bitmap to use in the Bitmap property, the method to invoke in the Method property, and other properties.
  6. Navigate to the Toolbar object definition to which the new Toolbar Item is to be added.
  7. In the Object Explorer, select the Toolbar Item object type.
  8. In the Object List Editor, add a new Toolbar Item object definition. Specify the name, the name of the Command object definition which supplies the bitmap and method, and the sequence number of the toolbar icon relative to the other toolbar icons appearing in the Toolbar Items list in the Object List Editor.

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