Developing and Deploying Siebel eBusiness Applications > Pick Lists, Drilldowns, and MVGs > Configuring Pick Lists >

Constraining a Pick List


You can filter a pick applet to display only records that have field values that match corresponding fields in the originating business component's records. For example, you can constrain the Opportunity pick applet, configured in the previous section, to display only the opportunities for the account associated with the activity.

To constrain a pick list you create another pick map with a Constrain property set to TRUE. This pick map defines fields on the originating business component and a field on the pick business component. These two fields must match for the record to be displayed in the pick applet. You can create more than one constrain pick map. Constrain pick maps do not copy the values of the field from the originating business component to the pick business component. They serve as a filter to determine which records will appear in the pick applet.

Following the NREC example, you will constrain the list of records displayed in the Opportunity Pick Applet based on the Account field.

To create a constrain pick map

  1. In the Object Explorer, expand the Business Component object type.
  2. In the Object List Editor, select the Action business component.
  3. The Action business component is the originating business component.

    NOTE:  The Opportunity business component is the pick business component.

  4. In the Object Explorer, expand the Field object type (child of Business Component).
  5. In the Object List Editor, select the Opportunity field.
  6. The Opportunity Field is the field from which the pick applet is invoked.

  7. In the Object Explorer, select the Pick Map object type (child of Field).
  8. In the Object List Editor, enter the following record.
  9. Field
    Pick List Field
    Constrain
    Account Name
    Account
    TRUE

    The Account Name field on the originating business component must match the Account field on the pick list business component for the record to be displayed in the pick applet.

  10. Compile and test.
  11. NOTE:  Notice that the only opportunities that appear are those associated with the Account record for Mary Caspell. To verify your results you will need to enter test data. If no account record is selected for the activity, then no opportunities will appear in the pick list.

    Click for full size image


 Developing and Deploying Siebel eBusiness Applications 
 Published: 18 April 2003