Siebel CRM Desktop for IBM Notes Administration Guide > Customizing Picklists > Process of Creating Custom Static Picklists >

Adding Fields to the Metadata to Support Static Picklists


This task is a step in Process of Creating Custom Static Picklists.

In this topic you add a field to the metadata to support a static picklist.

To add a field to the metadata to support a static picklist

  1. Use an XML editor open the siebel_meta_info.xml file.
  2. Locate the following object:

    TypeId="Opportunity"

  3. Add a new field to the Opportunity object. You add the following code immediately following the code line you located in Step 2:

    <field Name='JVD Simple' Label='JVD Simple' DataType='DTYPE_TEXT' IsFilterable='no'HasPicklist='yes' PicklistIsStatic='yes' PicklistCollectionType='JVD_SIMPLE'PicklistTypeId='List_Of_Values' IsHidden='no' IOElemName='JVDSimple' />

    where:

    • Field Name is any name you choose. It is recommended that you use the same name that you use in Siebel CRM for this field.
    • Label is equal to the value you provide for the Name.
    • DataType is the data type you specify for the integration component field in Step 7.
    • IsFilterable is set to the default of no. IsFilterable is not relevant for this example.
    • HasPicklist must be set to yes.
    • PicklistIsStatic must be set to yes.
    • PicklistCollectionType is the name of the list of values.
    • PicklistTypeId identifies the name of the picklist type for static picklists. For more information, see About the Predefined List of Values Object.
    • IsHidden must be set to no.
    • IOElemName identifies the name you specified for the XML Tag property in Step 7.

About the Predefined List of Values Object

The following List_of_Values picklist object comes predefined with Siebel CRM Desktop. It determines the fields to get, the field type, where to query for the language, and it makes the list of values active. It is similar to the Picklist Generic business component in Siebel CRM:

<picklist TypeId='List_Of_Values'
  SrcObjectTypeId='List_Of_Values'
  CollectionTypeFldName='Type'
  ValueFldName='Value'
  LabelFldName='Value'
  LangFldName='Language'>
  <master_filter_expr>
    <![CDATA[
      [Active] = 'Y'
    ]]>
  </master_filter_expr>
</picklist>

Siebel CRM Desktop for IBM Notes Administration Guide Copyright © 2018, Oracle and/or its affiliates. All rights reserved. Legal Notices.