You are on page 1of 48

Defining Descriptive Flexfields

Copyright © 2007, Oracle. All rights reserved.


Objectives

After completing this lesson, you should be able to do the


following:
• Identify the descriptive flexfield to be used and the
information to be gathered
• Organize the information according to usage
• Plan the layout of the descriptive flexfield
• Plan the behavior of the descriptive flexfield
• Define the descriptive flexfield structure
• Define global segments
• Define context-sensitive segments as appropriate

1-2 Copyright © 2007, Oracle. All rights reserved.


Overview

• Identifying and organizing data


• Arranging different descriptive flexfield layouts
• Specifying the flexfield mechanics
• Specifying descriptive flexfield attributes
• Defining a descriptive flexfield with global segments
• Defining a descriptive flexfield with both global and
context-sensitive segments

1-3 Copyright © 2007, Oracle. All rights reserved.


Planning a Descriptive Flexfield

• Identify the flexfield to be implemented.


• Determine the resources available for the flexfield.
• Identify and organize the information to be collected.
• Design the layout of the flexfield to reflect how the
information is used.
• Design the behavior of the flexfield.
• Define the flexfield, freeze, and compile.

1-4 Copyright © 2007, Oracle. All rights reserved.


Using Descriptive Flexfields

Application
__ Sale Information ____________________
Window:
Transaction 3987 Payment Type CC Application
Customer Jane Doe Specific
Information
Item COM-876-LTN
Description Computer - Monitor - Light Tan []

Descriptive
Flexfield Payment Type CC
Window:
Store
Customer
Specific Dept
Information Number
Exp. Dt

1-5 Copyright © 2007, Oracle. All rights reserved.


Typical Descriptive Flexfield Information

• Benefits information • Payment information


• Calendar information • Credit information
• Labor cost information • Budget information
• Lease information • Distribution system
• Currency exchange information
information

1-6 Copyright © 2007, Oracle. All rights reserved.


Some Oracle Applications
Descriptive Flexfields

Bonus Rates Bank Branch


Assets Calendar Types Payables Payment Terms
Price Indexes Site Address

General Credit History


Daily Rates Receivables
Ledger Information

Activity
Information Employee Labor
Bills of Item Cost Work in Rate
Material Information Progress Shop Floor
Status
Shift Time WIP Parameters
Information

1-7 Copyright © 2007, Oracle. All rights reserved.


Identifying a Descriptive Flexfield

• The presence of a descriptive flexfield on a form is


indicated by a single-space field enclosed in brackets.
Whenever you see this, there is a descriptive flexfield
defined for use with that form.
• In some cases there may be multiple descriptive
flexfields for use with the same form.

1-8 Copyright © 2007, Oracle. All rights reserved.


Determining the Descriptive Flexfield Name

Since descriptive flexfields are not labeled on the base


form, once you recognize a descriptive flexfield you
wish to implement, use the following procedure to
determine the name of the flexfield:
1. Click on a field in the same block in which the
descriptive flexfield appears.
2. Select Help—>Diagnostics—>Examine. This opens
a window showing information on the selected
field. Note the name of the block in which the field
is located.

1-9 Copyright © 2007, Oracle. All rights reserved.


Determining the Descriptive Flexfield Name

3. Click the Block list of values button to display a list of


the available blocks for this form. Select
$DESCRIPTIVE_FLEXFIELD$.
4. Click the Field list of values button to display a list of
the descriptive flexfields for this form. Each entry is
prefixed by the name of the block in which the
descriptive flexfield appears. Find the entries for the
block whose name you determined in step 2.
5. Select the flexfield you wish to implement from the
entries for that block. The user name of the descriptive
flexfield appears in the Value field.

1 - 10 Copyright © 2007, Oracle. All rights reserved.


Determining Available Resources

Use the list of values for the Column field in the Segments
Summary window to determine how many segments you
can plan to use.
(N) Application—>Flexfield—>Descriptive—>Segments
(B) Segments

1 - 11 Copyright © 2007, Oracle. All rights reserved.


Planning Questions

• What additional information needs to be captured?


• Is there any information you need to capture every
time?
• Is there information you need to capture on an ad hoc
basis?
• Can the need for capturing the ad hoc information be
conditioned on a value in a base window?
• How much control over the window processing do you
want to give to the user?

1 - 12 Copyright © 2007, Oracle. All rights reserved.


Identifying Your Information

Store number Check number

Credit card number

Expiration date Down payment

1 - 13 Copyright © 2007, Oracle. All rights reserved.


Grouping Information By Usage

Situation 1: Store number Down payment


(finance)

Situation 2: Store number Check number


(check)

Situation 3: Store number Credit card number Expiration


(credit card) Date

1 - 14 Copyright © 2007, Oracle. All rights reserved.


Isolate Common Information

Situation 1: Store number Down payment


(finance)

Situation 2: Store number Check number


(check)

Situation 3: Store number Credit card number Expiration


(credit card) Date

Used by Varies by
all tasks task

1 - 15 Copyright © 2007, Oracle. All rights reserved.


Determine Different Contexts

Finance context

Situation 1: Store number Down payment


(finance)
Check context

Situation 2: Store number Check number


(check)

Credit card context

Situation 3: Store number Credit card number Expiration


(credit card) Date

1 - 16 Copyright © 2007, Oracle. All rights reserved.


Descriptive Flexfield Components

• Global segment — Displays information common to all


contexts
• Context-sensitive segment — Displays information
appropriate only to a particular context
• Reference field — A field on the application window
whose value is used to determine contexts
• Context field — A field in the structure whose value is
used to determine contexts

1 - 17 Copyright © 2007, Oracle. All rights reserved.


Global Segments

Finance context
Global
Segments Store number
(Common)

Credit card context Check context

Store number Store number

1 - 18 Copyright © 2007, Oracle. All rights reserved.


Context-Sensitive Segments

Finance context
Context-
Sensitive
Segments Account
(Vary by context) Finance terms
Down payment

Credit card context Check context

Card number Second ID


Expiration date

1 - 19 Copyright © 2007, Oracle. All rights reserved.


Distinguishing Between Contexts

Finance context

Store number
Account
Finance terms
Down payment

Credit card context Context


Check context
field

Store number Store number


Second ID
Card number
Expiration date

1 - 20 Copyright © 2007, Oracle. All rights reserved.


Reference and Context Fields

• Reference Field: a field on the existing form whose


value is used to automatically distinguish between
contexts
• Context Field: a field created in the descriptive flexfield
structure that is used to allow the user to manually
select different contexts

1 - 21 Copyright © 2007, Oracle. All rights reserved.


Using Reference Fields

Existing
application Reference field
window

Context 1 Context 2

Global Global
Data Data
Proposed
Elements flexfield Elements
Context designs Context
Sensitive Sensitive
Fields Fields

1 - 22 Copyright © 2007, Oracle. All rights reserved.


Identifying Referenceable Columns

Use the list of values for the Reference Field field in the
Descriptive Flexfield Segments window to determine which
fields are available to use as reference fields for this
descriptive flexfield.
(N) Application—>Flexfield—>Descriptive—>Segments

1 - 23 Copyright © 2007, Oracle. All rights reserved.


Using Context Fields

Existing
application
window

Context 1 Context 2

Global Proposed flexfield designs Global


Data Data
Elements Elements
(Context) (Context)
Context (Context Context
Sensitive fields) Sensitive
Fields Fields

1 - 24 Copyright © 2007, Oracle. All rights reserved.


Synchronizing the Context Field Value with the
Reference Field Value

Optionally set up your flexfield so that the context field


value is synchronized with the reference field value. You
may have instances where, when querying existing
records, you want the context field value to match the
original reference field value, but with new records, you
want the context field value to be derived from the current
reference field value.

1 - 25 Copyright © 2007, Oracle. All rights reserved.


Planning Flexfields:
Global Segments Only

Existing application window

Global Proposed
Segments flexfield
design

1 - 26 Copyright © 2007, Oracle. All rights reserved.


Planning Flexfields:
Context Segments Only

Existing application window Proposed


flexfield
structures
Context

Context 1 Context 2

Context Context

Sensitive Sensitive
Fields Fields

1 - 27 Copyright © 2007, Oracle. All rights reserved.


Planning Flexfields:
Global and Context Fields

Global
Segments
Context Prompt

Global
Structure 1 Structure 2 Global
Segments
Segments

Context
Context
Sensitive
Sensitive
Fields
Fields

1 - 28 Copyright © 2007, Oracle. All rights reserved.


Specifying the Flexfield Attributes

In the Descriptive Flexfield Segments window, you can


define:
• Title
• Segment Separator
• Context Field
• Context Field Values
(N) Application—>Flexfield—>Descriptive—>Segments

1 - 29 Copyright © 2007, Oracle. All rights reserved.


Specifying the Context Field Information

In the Context Field region of the Descriptive Flexfield


Segments window, you can define:
• Prompt
• Value Set
• Default Value
• Reference Field
• Required
• Displayed
• Synchronize with Reference Field

(N) Application—>Flexfield—>Descriptive—>Segments

1 - 30 Copyright © 2007, Oracle. All rights reserved.


Specifying the Segment Attributes

In the Segments Summary window, you can define:


• Number
• Name
• Window Prompt
• Column
• Value Set
• Displayed
• Enabled
(N) Application—>Flexfield—>Descriptive—>Segments
(B) Segments

1 - 31 Copyright © 2007, Oracle. All rights reserved.


Storing Descriptive Flexfield Segments

Structure A Structure B

Global AAA Global AAA

Context BBB Context DDD

Context CCC

CONTEXT ATTRIBUTE1 ATTRIBUTE2 ATTRIBUTE3

Structure A Global AAA Context BBB Context CCC


Structure B Global AAA Context DDD

1 - 32 Copyright © 2007, Oracle. All rights reserved.


Descriptive Flexfield Application Tables

select fdftl.title,
fdf.application_table_name
from fnd_descriptive_flexs fdf,
fnd_descriptive_flexs_tl fdftl
where fdf.descriptive_flexfield_name =
fdftl.descriptive_flexfield_name
and fdf.application_id = '101'
and fdftl.title not like '$SRS$%'
order by fdftl.title;

1 - 33 Copyright © 2007, Oracle. All rights reserved.


Specifying the Segment Detail Attributes

In the Validation region of the Segments window, you can


define:
• Value Set
• Description
• Default Type
• Default Value
• Required
• Security Enabled
(N) Application—>Flexfield—>Descriptive—>Segments
(B) Segments

1 - 34 Copyright © 2007, Oracle. All rights reserved.


Specifying the Segment Detail Attributes

In the Sizes region of the Segments window, you can


define:
• Display Size
• Description Size
• Concatenated Description Size
(N) Application—>Flexfield—>Descriptive—>Segments
(B) Segments

1 - 35 Copyright © 2007, Oracle. All rights reserved.


Specifying the Segment Detail Attributes

In the Prompts region of the Segments window, you can


define:
• List of Values
• Window
(N) Application—>Flexfield—>Descriptive—>Segments
(B) Segments

1 - 36 Copyright © 2007, Oracle. All rights reserved.


Specifying Default Values

Default Type Default Value


Constant Any literal value
Current Date Current time
Current time Current time or current date/time
Field Default Value field value
Profile Value of profile in Default Value
Segment Value in prior segment
SQL Statement Result of SQL query

1 - 37 Copyright © 2007, Oracle. All rights reserved.


Defining a Descriptive Flexfield

1. Define any value sets needed.


2. Create the flexfield and specify context information.
3. Define different structures.
4. Specify segment cosmetics and behavior.
5. Freeze and compile the flexfield definition.
6. Define values for value sets if needed.

1 - 38 Copyright © 2007, Oracle. All rights reserved.


Defining Value Sets

• Define value sets for each segment of the planned


descriptive flexfield, including both global and context-
sensitive segments.
• Use existing value sets when possible.
• Use the Value Sets window to create new value sets if
necessary. These value sets can be used by other
flexfields or report parameters as appropriate.
(N) Application—>Validation—>Sets

1 - 39 Copyright © 2007, Oracle. All rights reserved.


Locating the Flexfield Definition

• Use the Descriptive Flexfield Segments window to


locate the target flexfield definition by finding the
application that owns the definition and the flexfield
title.
• A flexfield may appear on more than one window.
However, defining the flexfield once automatically
defines it for all locations.
• After you access the definition, you must unfreeze it to
begin making changes.
(N) Application—>Flexfield—>Descriptive—>Segments

1 - 40 Copyright © 2007, Oracle. All rights reserved.


Defining the Flexfield Header Attributes

Use the Descriptive Flexfield Segments window to enter:


• Application
• Title
• Freeze Flexfield Definition
• Segment Separator
• Global Data Elements
(N) Application—>Flexfield—>Descriptive—>Segments

1 - 41 Copyright © 2007, Oracle. All rights reserved.


Defining Segment Attributes

Use the Segments Summary window to enter:


• Number
• Name
• Window Prompt
• Column
• Value Set
• Displayed
• Enabled
(N) Application—>Flexfield—>Descriptive—>Segments
(B) Segments

1 - 42 Copyright © 2007, Oracle. All rights reserved.


Specifying Validation and Field Sizes

Use the Segments window to enter options for:


• Validation
• Sizes
• Prompts
(N) Application—>Flexfield—>Descriptive—>Segments
(B) Segments (B) Open

1 - 43 Copyright © 2007, Oracle. All rights reserved.


Freezing and Compiling the Definition

Use the Descriptive Flexfield Segments window to:


• Freeze the flexfield definition by checking the Freeze
Flexfield Definition check box
• Compile the flexfield definition by clicking the Compile
button
(N) Application—>Flexfield—>Descriptive—>Segments

1 - 44 Copyright © 2007, Oracle. All rights reserved.


Defining Context Field Information

Use the Descriptive Flexfield Segments window to enter:


• Prompt
• Default Value
• Reference Field
• Value Required
• Override Allowed (Display Context)
• Context Field Values
(N) Application—>Flexfield—>Descriptive—>Segments

1 - 45 Copyright © 2007, Oracle. All rights reserved.


Defining Context-Sensitive Segments

Use the Segments Summary, Segments, and Descriptive


Flexfield Segments windows to define context-sensitive
segments using the same procedure as for global
segments:
• Specify all necessary segment attribute information.
• Enable the segment.
• Define any validation information.
• Modify the display size if necessary.
• Freeze and compile the definition.
(N) Application—>Flexfield—>Descriptive—>Segments
(B) Segments (B) Open

1 - 46 Copyright © 2007, Oracle. All rights reserved.


Defining Values for a Value Set

After you finish defining the descriptive flexfield structure,


use the Segment Values window to define values for any
independent or dependent value sets assigned to any
segments of the descriptive flexfield.
(N) Application—>Validation—>Values

1 - 47 Copyright © 2007, Oracle. All rights reserved.


Summary

• Descriptive flexfields gather additional information.


• Design the descriptive flexfield to support the different
needs of different users.
• Define flexfield level attributes.
• Define global segments for the Global Data Elements
structure.
• Define a reference or context field if using different
contexts.
• Define a structure for each context containing the
segments appropriate for that context.
• Freeze and compile the finished definition.

1 - 48 Copyright © 2007, Oracle. All rights reserved.

You might also like