Siebel CRM Desktop for Microsoft Outlook Administration Guide > Customizing Siebel CRM Desktop > Customizing Field Behavior >
Displaying Siebel CRM Fields
The example in this topic displays the Mail Stop field on the Contact form in the client. You make this field available through the Siebel API and then customize CRM Desktop to synchronize and display the field. You modify the following files:
- siebel_meta_info.xml
- siebel_basic_mapping.xml
- forms_xx.xm
- package_res.xml
For more information, see Files That the Customization Package Contains. To display a Siebel CRM field
- Open Siebel Tools and then display the object type named Integration Object.
For more information, see Displaying Object Types in Siebel Tools.
- Make sure the Mail Stop field exists on the Contact business component.
If it does not, then add it now.
- Add the Mail Stop field to the CRMDesktopContactIO integration object.
In order for CRM Desktop to synchronize data with the Siebel database, you use CRM Desktop integration objects and integration components to make the objects and fields that you use in this example available. The Contact object is already available but the Mail Stop field is not. To make the Mail Stop field available, you add it to the Contact integration component for each of the required integration objects:
- In the Object Explorer, click Integration Object and then locate the CRMDesktopContactIO integration object in the Integration Objects list.
- In the Object Explorer, expand the Integration Object tree, click Integration Component, and then locate the Contact integration component in the Integration Components list.
- In the Object Explorer, expand the Integration Component tree and then click Integration Component Field.
- In the Integration Component Fields list, add a new record using values from the following table.
|
|
Name |
Mail Stop |
Data Type |
DTYPE_TEXT |
- Repeat Step 3 for the CRMDesktopAccountIO integration object.
- Repeat Step 3 for the CRMDesktopOpportunityIO integration object.
- Compile all locked projects.
After compiling finishes, the Mail Stop field is available through the API and you can configure CRM Desktop to use the field. For more information, see Using Siebel Tools.
- Specify the objects and fields to synchronize:
- Use an XML editor to open the siebel_meta_info.xml file.
For more information, see Files That the Customization Package Contains.
- Locate the following tag:
object TypeId='Contact'
Several child field tags reside in the object TypeId='Contact' tag. These children identify the fields for the Contact object.
- Add the following field tag as a child of the tag that you located in Step b:
<field Name='Mail Stop' Label='Mail Stop' DataType='DTYPE_TEXT' IOElemName='MailStop' />
- Repeat Step b and Step c for the following tag:
object TypeId='Account.Contact'
- Repeat Step b and Step c for the following tag:
object TypeId='Opportunity.Contact'
- Save and close the siebel_meta_info.xml file.
- Map the Mail Stop field from the Contact object in the Siebel database to a field in CRM Desktop:
- Use an XML editor to open the siebel_basic_mapping.xml file.
For more information, see Files That the Customization Package Contains.
- In the siebel_basic_mapping.xml file, add a new field tag to the type tag using values from the following table.
- Add the following code to the tag you created in Step b.
<field id="Mail Stop"> <reader class="mapi_user"> <user_field id="sbl Mail Stop" ol_field_type="1"></user_field> <convertor class="string"></convertor> </reader> <writer class="Microsoft Outlook_user"> <user_field id="sbl Mail Stop" ol_field_type="1"></user_field> <convertor class="string"></convertor> </writer> </field>
- Save and close the siebel_basic_mapping.xml file.
- Insert a label and the Mail Stop field following the Job Title field on the Contact form:
- Open the forms_12.xml file and then locate the cell that contains the #lbl_job_title label control.
- Insert the following XML code immediately after the cell that contains the #lbl_job_title label control:
<cell size="22"> <control id="lbl_MailStop" class="static" tab_order="6"> <text>#lbl_mail_stop</text> </control> </cell>
The following code specifies a key that the package_res.xml file uses to determine the localized value for the label:
#lbl_mail_stop
- Locate the section that is labeled with the following comment:
left side fields
This section resides in the tag that resides in the form that contains the SBL Contact ID.
- Add the text field control. You insert the following XML code immediately before the cell that contains the ContactToAccount MVG control, and just following the cell that contains the status_image control:
<cell size="22"> <control class="edit" id="MailStop" tab_order="7"> <field value="string">Mail Stop</field> </control> </cell>
- Locate the cell size tag, and then change it to the following value:
<cell size="185">
To make room for the new field, you must increase the cell size that contains all of the child objects. In this example, you change the cell size from 155 to 185.
- Add the following code to the package_res.xml file:
<str key="lbl_mail_stop">Mail stop:</str>
Add this code as a child of the res_root tag under the following comment:
<!-Contact Form
This code provides localized valuesand images to the client. It allows the Contact form to display the Mail Stop label through a key value. The package_res.xml file provides localized values and images to CRM Desktop. You added the new Mail Stop field to the Contact form, so you must provide the text for the label. When you modified the forms_12.xml file, you created a label control that contains #lbl_mail_stopfor the text value. This control identifies the key to use in the package_res.xml file.
- Republish the updated package files.
During the next synchronization, CRM Desktop uses the updated files to apply the modifications to the Contact form. The Mail Stop field is available on the Contact form and CRM Desktop synchronizes the values in this field with the Siebel Server. For more information, see Republishing Customization Packages.
|