Siebel CRM Desktop for IBM Notes Administration Guide > Customizing Siebel CRM Desktop > Process of Adding Custom Objects >
Defining the Toolbar
This task is a step in Process of Adding Custom Objects. 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:
To define the toolbar
- Open IBM Domino Designer.
For more information, see Opening IBM Domino Designer.
- In the Applications pane, expand Resources, right-click Images, and then choose New Image Resource from the shortcut menu that IBM Domino Designer displays.
- In the Open dialog, locate the image file and then click Open.
- Export and then import the updated resources to the customization package.
For more information on how to do this, Preparing the Development Environment.
- In IBM Domino Designer, open the following form:
(SBL)form:activity
- Add a new action to the action bar for the form.
You can use a localization macro to name a new action instead of using a text label.
- Do the configuration settings.
For example, in the Icons group, you can choose the Custom option, and then navigate to the icon image that you added in Step 2. IBM Domino Designer displays the new action in the bar for the action and in the Objects tab.
- In the Objects tab, locate the action you created, expand it, and then choose the Click event.
- In the pane to the right, choose the Client option from the first drop-down list, and then choose the LotusScript option from the second drop-down list.
- In the Sub code section, add the following code:
Dim unid As Variant unid = m_FormHandler.DocumentEx.UniversalID ActiveX.Script.OPEN_IN_SIEBEL unid
- Open the application_script.js file, and then add the OPEN_IN_SIEBEL function. Make sure you use the correct upper case and lower case for the function name.
For example:
function OPEN_IN_SIEBEL(local_id_hex) { var local_id = application.session.hexstring_to_id(local_id_hex); var remote_id = application.synchronizer.id_to_remote(local_id); if (remote_id != null)
application.connector.get_async_object_page(remote_id, on_open_context_page); else ui.message_box(0, session.res_string("MSG_REMOTE_NOT_FOUND"), session.res_string("MSG_REMOTE_NOT_FOUND_CAPTION"), 0x40);
|