Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
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
- In Types view in the Object Explorer, double-click the Toolbar object type.
- Click to the left of a row in the Object List Editor, and then choose Edit > New Record.
- Specify the name of the new toolbar in the Name property of the new object definition.
- 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.
For detailed information on templates and tags, see Siebel Developer's Reference.
To add a new toolbar icon to an existing toolbar
- 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.
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.
- 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.
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).
- 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.
- Navigate to the Toolbar object definition to which the new Toolbar Item is to be added.
- In the Object Explorer, select the Toolbar Item object type.
- 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.
Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Siebel Tools Reference, Version 7.5, Rev. A Published: 18 April 2003 |