Oracle E-Business Suite customers who have configured BI Publisher to use E-Business Suite security can create reports that leverage key flexfields as parameters.
When you define a data model to pass a key flexfield as a parameter, BI Publisher presents a dialog to the report consumer to make selections for the flexfield segments to pass as parameters to the report, similar to the way flexfields are presented when running reports through the concurrent manager in the E-Business Suite.
The flexfield list of values displays in the report viewer as shown below.
The flexfield list of values displays as a dialog from which you select the segment values, as shown below.
When defining a list of values, E-Business Suite customers see a list Type called "Flexfield".
To enable the flexfield type list of values, BI Publisher must be configured to use E-Business Suite Security. The flexfield must already be defined in the E-Business Suite.
For information about flexfields in the E-Business Suite, see Oracle E-Business Suite Flexfields Guide. For information about setting up E-Business Suite security for BI Publisher, see Integrating with Oracle E-Business Suite in Administrator's Guide for Oracle Business Intelligence Publisher.
Add flexfield parameters by adding the list of values.
The flexfield type list of values retrieves the flexfield metadata definition to present the appropriate values for each segment in the flexfield list of values selection dialog. Use the flexfield parameter to pass values to the Flexfield defined in the Data Model.
At runtime the &flexfield_name
reference is replaced with the lexical code constructed based on the values in the Flexfield component definition.
&flexfield_name
syntax.Add a list of values retrieved from a flexfield definition.
When you choose Flexfields as the Type, the Data Source option is no longer editable. All flexfields type lists of values use the Oracle E-Business Suite as the data source.
Define the parameter to display the flexfield list of values and capture the values selected by the user.
The Flexfield type parameter definition includes an additional field called Range to support range flexfields. A range flexfield supports low and high values for each key segment rather than just single values. You can customize the default value of the flexfield and row placement in the report definition. The row placement determines where this parameter appears in the report viewer. To pass a range of flexfield segment values, see Passing a Range of Values
The following options are disabled for flexfield parameters: Number of Values to Display in List, Multiple Selection, Can select all, and Refresh other parameters on change.
The image shows a parameter definition for the flexfield list of values.
After adding the Menu parameter to the flexfield list of values, you can pass the parameter values to a flexfield component in the data model.
Adding Flexfields covers adding a flexfield component in detail. The simplified procedure is provided here to complete the example.
To define the Flexfield in the data model:Finally, create the SQL query against the E-Business Suite database.
Use the lexical syntax in the query as described in Adding Key Flexfields. In the figure below &Acct_Flex
is the Flexfield lexical called in the where condition of the SQL query.
To define the parameters for the flexfield lists of values when you want to pass a range of values you create two menu parameters that both reference the same flexfield LOV.
At runtime users choose a high value from the list of values and a low value from the same list of values. These two values are then passed as operands to the flexfield component of the data model.
When the report associated with this data model is displayed in the report viewer, the report consumer sees the two flexfield parameters as shown below.
When the report consumer clicks either the high or low flexfield indicator (...), a dialog launches enabling input of both the high and low values as shown below.
The display characteristics in the report viewer of the range flexfield parameter resemble closely the presentation of range flexfields in the E-Business Suite.