Skip Headers

Oracle Fusion Middleware Data Modeling Guide for Oracle Business Intelligence Publisher (Oracle Fusion Applications Edition)
Release 11g (11.1.1)
Part Number E21074-01
Go to Table of Contents
Contents
Go to previous page
Previous
Go to next page
Next
View PDF

Adding Flexfields

This chapter covers the following topics:

About Flexfields

Flexfields are used in Oracle Fusion Applications. A flexfield is an "expandable" data field that is divided into segments. If you are reporting on data from an Oracle Fusion application, use this component of the data model to retrieve flexfield data.

For more information about flexfields, see the following resources: Oracle Fusion Applications Developer's Guide and the chapter "Using Flexfields for Custom Attributes" in the Oracle Fusion Applications Extensibility Guide.

To use a flexfield in your data model:

You can use flexfield references to replace the clauses appearing after SELECT, FROM, WHERE, ORDER BY, or HAVING. Use a flexfield reference when you want the parameter to replace multiple values at runtime. The data model editor supports the following flexfield types:

After you set up the flexfield components of your data model, create a flexfield reference in your SQL query using the following syntax:

&LEXICAL_TAG ALIAS_NAME

for example:

&FLEX_GL_BALANCING alias_gl_balancing

Adding Flexfields

On the Data Model components pane, click Flexfields and then click Create new Flexfield. Enter the following:

Entering Flexfield Details

Select Segment Metadata, Select, Where, Order By, Filter. Depending on the type you select, the detail pane will display the appropriate fields.

Detail Fields for Segment Metadata
Field Description
Segments (Optional) Identifies for which segments this data is requested. Default value is "ALL".
Show Parent Segments Select this box to automatically display the parent segments of dependent segments even if it is specified as not displayed in the segments attribute.
Metadata Type Select the type of metadata to return:
Above Prompt - above prompt of segment(s).
Left Prompt - left prompt of segment(s)

The following table shows the detail fields for the Select flexfield type:

Detail Fields for Select
Field Description
Multiple ID Flex Num Indicates whether this lexical supports multiple structures or not. Checking this box indicates all structures are potentially used for data reporting and it will use <code_combination_table_alias>.<set_def ining_column_name> to retrieve the structure number.
Code Combination Table Alias Specify the table alias to prefix to the column names. Use TABLEALIAS if your SELECT joins to other flexfield tables or uses a self-join.
Segments (Optional) Identifies for which segments this data is requested. Default value is "ALL".
Show Parent Segments Select this box to automatically display the parent segments of dependent segments even if it is specified as not displayed in the segments attribute.
Output Type Select from the following:
  • Value - segment value as it is displayed to user.

  • Padded Value - padded segment value as it is displayed to user. Number type values are padded from the left. String type values are padded on the right.

  • Description - segment value's description up to the description size defined in the segment definition.

  • Full Description - Segment value's description (full size).

  • Security - Returns Y if the current combination is secured against the current user, N otherwise.

The following table shows the detail fields for the Where flexfield type:

Detail Fields for Where
Field Description
Code Combination Table Alias Specify the table alias to prefix to the column names. You use TABLEALIAS if your SELECT joins to other flexfield tables or uses a self-join.
Segments (Optional) Identifies for which segments this data is requested. Default value is "ALL".
Operator Choose the appropriate operator.
Operand1 Enter the value to use on the right side of the conditional operator.
Operand2 (Optional) High value for the BETWEEN operator.

The following table shows the detail fields for the Order by flexfield type:

Detail Fields for Order By
Field Description
Multiple ID Flex Num Indicates whether this lexical supports multiple structures or not. Checking this box indicates all structures are potentially used for data reporting and it will use <code_combination_table_alias>.<set_def ining_column_name> to retrieve the structure number.
Code Combination Table Alias Specify the table alias to prefix to the column names. You use TABLEALIAS if your SELECT joins to other flexfield tables or uses a self-join.
Segments (Optional) Identifies for which segments this data is requested. Default value is "ALL".
Show Parent Segments Select this box to automatically display the parent segments of dependent segments even if it is specified as not displayed in the segments attribute.

The following table shows the detail fields for the Filter flexfield type:

Detail Fields for Filter
Field Description
Code Combination Table Alias Specify the table alias to prefix to the column names. You use TABLEALIAS if your SELECT joins to other flexfield tables or uses a self-join.
Flex Filter ID (Required) Enter the unique Key internal code of the key flexfield.
Flex Filter Comment (Optional) Enter a comments or description.