Oracle CRM On Demand Desktop Customization Guide > Adding Custom Fields to Oracle CRM On Demand Desktop > Process of Adding Multiselect Picklists to a Form >

Creating a New Object Type for the Multiselect Picklist


To create a new object type for the multiselect picklist, you must use the following format for the id attribute of the <type> element:

<type id="object_namefield_namePicklist" predefined_folder="1">

where:

    • object_name is the name of the object type in the od_meta_info.xml file.
    • field_name is the name of the field that resides in the object that you define in object_name.

This task is a step in Process of Adding Multiselect Picklists to a Form.

To create a new object type for the multiselect picklist

  1. For this example, add this code inside the <database><types>...</types></database> elements in the od_basic_mapping.xml file as follows:

    <type id="ContactmsplTest_MSPPicklist" icon="type_image:ContactmsplTest_MSPPicklist:16">
    <field id ="Label">
    <type>
    <simple type="string"/>
    </type>
    </field>
    <field id ="Value">
    <type>
    <simple type="string"/>
    </type>
    </field>
    <field id ="SortOrder">
    <type>
    <simple type="integer"/>
    </type>
    </field>
    <field id ="IsDefault">
    <type>
    <simple type="boolean"/>
    </type>
    </field>
    </type>

  2. Save and close the od_basic_mapping.xml file.
Oracle CRM On Demand Desktop Customization Guide, Version 5.1 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.