Вы находитесь на странице: 1из 7

Practice 5-4

Practice
Practice 5-4
5-4
Defining
Defining aa descriptive
descriptive flexfield
flexfield with
with Dependent
Dependent
validation
validation

Copyright Oracle Corporation, 2000. All rights reserved.

Practice 5-4 Instructions


Scenario
In this practice, you will create a dependent value set to validate a descriptive
flexfield segment. The descriptive flexfield will track the country and region for
a salesperson. The list of values for the region segment will change depending
on the country that is selected.
Remember that when defining a dependent value set, you must perform these
steps in this order:
1 Define the independent value set.
2 Define the dependent value set.
3 Define independent values.
4 Define dependent values.
Step 1: Define Value Sets
Use the Value Sets window to define two value sets.
Define an independent value set named XX_COUNTRY. Give the value
set a description, a format type of Char, and a maximum size of 3. Specify
that the values must be uppercase only, and enable security and Longlist
for the value set.
Define a dependent value set named XX_REGION. Give the value set a
description, a format type of Char, and a maximum size of 3. Specify that
the values must be uppercase only, and enable security for the value set.
Copyright Oracle Corporation, 2000. All rights reserved.

Defining Descriptive Flexfields


Chapter 5 - Page 70

Associate the dependent value set with the independent value set
XX_COUNTRY. Assign the dependent value set a dependent default value
of XX, and give the default value a description.
Step 2: Define the Structure (Segments)
After defining your value sets, use the Descriptive Flexfield Segments window
to define the structure for your descriptive flexfield. For the purposes of this
practice, use the same descriptive flexfield that you worked on previously to
enter your new structure. Unfreeze the flexfield definition first so that you can
change the structure.
For the context field, change the prompt back to Context. Specify that no value
is required and context override is not allowed. Disable the Yes and No contexts
that you defined previously, and delete the segments that you defined for the
Yes context.
Define two new segments for the Global Data Elements context.
Define a segment named Country Code, with a prompt of Country. Assign
the segment the number 10, the column ATTRIBUTE1, and the value set
XX_COUNTRY.
Define a segment named Region Code, with a prompt of Region. Assign
the segment the number 20, the column ATTRIBUTE2, and the value set
XX_REGION.
Ensure that both segments are displayed and enabled. When you finish defining
the structure, freeze and compile your flexfield definition.
Step 3: Define Values
After defining the value sets and segments for your flexfield, use the Segment
Values window to define the values associated with the independent and
dependent value sets.
Define and enable the following values for the XX_COUNTRY value set.
Value: USA
Description: United States
Value: CAN
Description: Canada

Value: UK
Description: United Kingdom
Define and enable the following values in the XX_REGION value set for
the independent value USA.
Value: OK
Description: Oklahoma
Value: TX
Description: Texas
Copyright Oracle Corporation, 2000. All rights reserved.

Defining Descriptive Flexfields


Chapter 5 - Page 71

Value: WI
Description: Wisconsin
Define and enable the following values in the XX_REGION value set for
the independent value CAN.
Value: SAS
Description: Saskatchewan
Value: BC
Description: British Columbia

Value: YT
Description: Yukon Territory
Define and enable the following values in the XX_REGION value set for
the independent value UK.
Value: WA
Description: Wales
Value: SL
Description: Scotland

Value: EN
Description: England
After defining your value sets, segments, and values, navigate to your
descriptive flexfield and test the results of your work. When you are finished,
exit without saving.
Practice 5-4 Solutions
Step 1: Define Value Sets
1 Navigate to the Value Sets window.
System Administrator: (N) Application>Validation>Set
2 Enter the information for the first value set in the following fields:
Value Set Name: XX_COUNTRY
Description: XX Country Value Set
Security Available: Selected
Enable Longlist: Selected
Format Type: Char
Maximum Size: 3
Uppercase Only: Selected

Copyright Oracle Corporation, 2000. All rights reserved.

Defining Descriptive Flexfields


Chapter 5 - Page 72

Validation Type: Independent


3 Save your work.
4 Enter the information for the second value set in the following fields:
Value Set Name: XX_REGION
Description: XX Region Value Set
Security Available: Selected
Format Type: Char
Maximum Size: 3
Uppercase Only: Selected
Validation Type: Dependent
5 Click the Edit Information button to navigate to the Dependent Value
Set Information window.
6 In the Independent Value Set region, enter XX_COUNTRY in the
Name field.
7 In the Dependent Default Value region, enter XX in the Value field
and XX Region Default in the Description field.
8 Save your work.
Step 2: Define the Structure (Segments)
1 Navigate to the Descriptive Flexfield Segments window.
System Administrator: (N) Application>Flexfield>
Descriptive>Segments
2 Query your descriptive flexfield.
3 Clear the Freeze Flexfield Definition check box.
4 In the Context Field region, enter information in the following fields:
Prompt: Context
Value Required: Cleared
Override Allowed (Display Context): Cleared
5 In the Context Field Values region, clear the Enabled check box for
the Yes context and the No context.
6 Select the Yes context and click the Segments button to navigate to the
Segments Summary window.
7 Delete the segments that you defined previously.
8 Save your work.
9 Navigate back to the Descriptive Flexfield Segments window.
10 In the Context Field Values region, select the Global Data Elements
context and click the Segments button to navigate to the Segments
Summary window.
11 Enter the information for the first segment in the following fields:
Number: 10
Name: Country Code
Copyright Oracle Corporation, 2000. All rights reserved.

Defining Descriptive Flexfields


Chapter 5 - Page 73

Window Prompt: Country


Column: ATTRIBUTE1
Value Set: XX_COUNTRY
Displayed: Selected
Enabled: Selected
12 Save your work.
13 Enter the information for the second segment in the following fields:
Number: 20
Name: Region Code
Window Prompt: Region
Column: ATTRIBUTE2
Value Set: XX_REGION
Displayed: Selected
Enabled: Selected
14 Save your work.
15 Navigate back to the Descriptive Flexfield Segments window.
16 Select the Freeze Flexfield Definition check box.
17 Click the Compile button to compile the flexfield definition.
Step 3: Define Values
1 Navigate to the Segment Values window.
System Administrator: (N) Application>Validation>Values
2 In the Find window, select Value Set and find the XX_COUNTRY
value set.
3 In the Values, Effective region of the Segment Values window, define
the following values:
Value: USA
Description: United States
Enabled: Selected
Value: CAN
Description: Canada
Enabled: Selected
Value: UK
Description: United Kingdom
Enabled: Selected
4 Save your work.
5 Select Value Set and find the XX_REGION value set and the
independent value USA.
Copyright Oracle Corporation, 2000. All rights reserved.

Defining Descriptive Flexfields


Chapter 5 - Page 74

6 In the Values, Effective region, define the following values:


Value: OK
Description: Oklahoma
Enabled: Selected
Value: TX
Description: Texas
Enabled: Selected
Value: WI
Description: Wisconsin
Enabled: Selected
7 Save your work.
8 Select Value Set and find the XX_REGION value set and the
independent value CAN.
9 In the Values, Effective region, define the following values:
Value: SAS
Description: Saskatchewan
Enabled: Selected
Value: BC
Description: British Columbia
Enabled: Selected
Value: YT
Description: Yukon Territory
Enabled: Selected
10 Save your work.
11 Select Value Set and find the XX_REGION value set and the
independent value UK.
12 In the Values, Effective region, define the following values:
Value: WA
Description: Wales
Enabled: Selected
Value: SL
Description: Scotland
Enabled: Selected

Copyright Oracle Corporation, 2000. All rights reserved.

Defining Descriptive Flexfields


Chapter 5 - Page 75

Value: EN
Description: England
Enabled: Selected
13 Save your work.
After defining your value sets, segments, and values, navigate to your
descriptive flexfield and test the results of your work. When you are
finished, exit without saving.

Copyright Oracle Corporation, 2000. All rights reserved.

Defining Descriptive Flexfields


Chapter 5 - Page 76

Вам также может понравиться