Siebel CRM Desktop for Microsoft Outlook Administration Guide > Customizing Siebel CRM Desktop > Process of Customizing Objects in Siebel CRM Desktop >

Defining the Toolbar


This task is a step in Process of Customizing Objects in Siebel CRM Desktop.

For this example, it is desirable to implement some actions for the custom object on a toolbar. An action can be simple, such as attaching a note to the custom object. An action can be more complicated, such as sending an email to all contacts that are related to the custom object. In this example, you add the following buttons to the toolbar:

  • Add Open in Siebel CRM
  • Add attachment to the toolbar of the form
  • Add New Activity to the Siebel CRM Desktop toolbar

To implement these changes, you modify the toolbars.xml file. Because this file typically already contains definitions for the Siebel CRM Desktop and the form toolbars, you define only the custom buttons.

To define the toolbar

  1. Encode the icon that represents the new button:
    1. Create a PNG file that includes the icon that represents the button in the Siebel CRM Desktop client.
    2. Encode the PNG file for Base64.

      Because Siebel CRM Desktop stores the icon in the resource file in a Base64 encoded string, you must encode the PNG file. You can use any standard Base64 encoder, such as base64.exe.

    3. Remove the line breaks from the contents of the output file you created in Step b.
    4. Add the contents of the output file you created in Step b to the package_res.xml file.
  2. To define a new button for the Siebel CRM Desktop toolbar, add the following code to the toolbars.xml file:

    <toolbar caption="Siebel CRM Desktop" for="explorer">

    (................)

    <button name="New Activity" small_image="type_image:Activity:16">

    <action class="create_item" item_type="Action"/>

    </button>

    (................)

    </toolbar>

  3. To define a new button for the form toolbar, add the following code to the toolbars.xml file. Note that the code uses the term inspector to reference the form:

    <toolbar caption="Siebel CRM Desktop" for="inspector">

    (................)

    <button name="Attach File" small_image="attach_btn_img">

    <action class="create_attachment" accept_type="Action">

    <attachment type="Attachment" name_field="Name" body_field="Body" linking_field="ParentId"/>

    </action>

    </button>

    (................)

    </toolbar>

Siebel CRM Desktop for Microsoft Outlook Administration Guide Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Legal Notices.