Oracle CRM On Demand Desktop Customization Guide > Adding Custom Fields to Oracle CRM On Demand Desktop >

Adding Description Fields to a Form


This topic describes how to display a description field, using the Microsoft Outlook control for description fields on an Oracle CRM On Demand Desktop form. In this example, you add a field called Description to the UI form. In this procedure, you update the following metadata files:

  • od_meta_info.xml
  • od_basic_mapping.xml
  • forms_12.xml
  • package_res.xml

For information on the contents of these files, see About the Metadata Files Updated During Customization.

To add a description control field to a form

  1. Update the od_meta_info.xml file by adding the following XML element to define the field to the corresponding object type structure:

    <field Name="Description" Label="Description" DataType="DTYPE_TEXT" />

  2. Update the od_basic_mapping.xml file by adding the following XML code to the corresponding object type structure:

    <field id="Description">
    <reader>
    <mapi_std>
    <mapi_tag id="0x10000000"></mapi_tag>
    <convertor>
    <multiline_string/>
    </convertor>
    </mapi_std>
    </reader>
    <writer>
    <outlook_std>
    <outlook_field id="Body"></outlook_field>
    <convertor>
    <multiline_string/>
    </convertor>
    </outlook_std>
    </writer>
    </field>

  3. Update the forms_12.xml file by adding the label for the description control field to update the UI layout.

    To add the description control field, add the following XML to the corresponding object type structure:

    <cell>
    <control id="description" tab_order="37" window_id="0x103f"></control>
    </cell>

    The steps for adding labels are provided in Changing the XML Code in the forms_12.xml File and are the same as for a text field.

  4. Update the package_res.xml file by adding the resources for the label text.

    The steps for adding the resources are provided in Changing the XML Code in the package_res.xml File and are the same as for a text field.

Oracle CRM On Demand Desktop Customization Guide, Version 5.2 Revision A Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.