Beruflich Dokumente
Kultur Dokumente
0 Essentials
1 of 23
Module Objectives
To understand the two types of picklists To describe the difference between static and dynamic picklists To administer a list of values To configure static and dynamic picklists
3 of 23
Picklists
Picklists allow the user to select a value, from a list of values, for a
single-value field
Makes data entry faster Enforces business rules Reduces errors
Picklists are of two types:
4 of 23
Static Picklists
Static picklist draws values from data managed by an administrator, hence the values remain unchanged at runtime, making it Static A drop-down list of values is displayed, for selection by the user Copies the selected value into the destination field
No link to the original picklist data
Dropdown list
5 of 23
administrative views
Administration Data > List of Values (or LOV Explorer)
The type of the value indicates which static picklist it belongs to
6 of 23
Navigate to Administration Data > LOV Explorer view Select an existing picklist or create a new one in the List of Values Types applet Expand the Type and select the child Values folder Edit the picklist values in the LOV applet
7 of 23
Dynamic Picklist
Values are displayed in a pick applet Values are drawn from a BC
joined fields
Copies the selected value into the Picklist field In addition, copies foreign key Id of selected value into destination field Indicates dynamic picklist
8 of 23
Picklist Terms
Originating business component: The BC with whose field a picklist is
associated Pick business component: The BC from where the value is drawn
Account Pick BC
Contact Originating BC
9 of 23
Picklist Wizard
Use the Picklist wizard to create a new static or dynamic picklist Select File > New Object > Picklist
10 of 23
The project it will be a part of The BC and its field populated by the picklist Picklist name and type
Picklist type
11 of 23
12 of 23
A picklist object A pick map specifying values copied to the S_LST_OF_VAL table Values in S_LST_OF_VAL for the picklist Activated drop-down list column or control
13 of 23
The wizard displays all applets displaying the originating field Only the applets that are locked by the developer will be activated
The wizard also sets the list column or control Runtime property to
TRUE
Results in appearance of a drop-down arrow
14 of 23
Project the picklist will be a part of Origination BC and its field for the picklist Picklist name and type
Picklist type
15 of 23
Pick BC
BC field to sort on
16 of 23
17 of 23
the pick BC
18 of 23
A picklist object A pick map constructed in the wizard A pick applet, if needed Activated control or list column in applets containing the originating field Must have Runtime property set to TRUE
19 of 23
Constrained Picklist
A constrained picklist filters values in the list dynamically, based on
20 of 23
Constraining a Picklist
Create a pick map definition for every field that must match For each of the matching fields, set the Constrain property to TRUE This filters the pick BC records for matches
21 of 23
Module Highlights
Picklists allow selection of values from a list, for a single-value field Static Picklists:
Display values in a dropdown list Contain values managed by List of Values administrative views Store values in S_LST_OF_VAL table
Dynamic Picklists:
Display values in a pick applet Contain dynamic data Access data in pick BC using a foreign key
22 of 23
Lab
In the lab, you will:
23 of 23