Report Parameters

Report parameters are used to specify the data to use in a report, connect related reports together, and vary report presentation.

The following report parameters are used in Oracle Analytics Publisher:

Note:

All the below mentioned parameters, which are used in the report data model must be declared in the report specific package.

If any of the parameters are not declared in the package, those parameters cannot be used in the data model.

Table 5-4 Report Parameters

S.No. Parameter Name Label/ Display Name Parameter Type Data Type Description

1.

pi_enterprise_id

Enterprise ID

Drop-down list

Integer

This prompt lists the Enterprise ID of all the enterprises as per your login credentials (that is, to which logged in user belongs). You are required to select an enterprise for which you want to run the report.

For the menu type, parameter list of values object needs to be selected.

The List of Value Select Enterprise is selected for this parameter.

In the list of values any valid SQL query can be provided. In this parameter Enterprise ID is listed.

2.

pi_querytype

Case Series or Query

Fixed drop-down list

String

Generic Line Listing Report can be run on a Case Series, QBE, Advanced Condition or Filter. This is a drop-down (single select) list that allows user to select one of these type on which you want to run the report. The default value selected for this parameter is Case Series.

3.

pi_id

Case Series/Query Name

Drop-down list

Integer

An Enterprise ID is passed to get the correct Case Series/QBE/Advanced Condition/Filter names as per the login credentials.

Case series, QBE, Advanced Condition or Filter name will be listed based on the Case Series or Query parameter selected by you.

You will be allowed to select any one option from the drop-down list. In the report, Case Series or Query name is shown in the drop-down list, but Case Series ID or Query/Filter ID will be passed to the database packages.

4.

pi_category_name

Category Name

User Input

String

This is optional text prompt where you can enter the name of report category (or Oracle Analytics Publisher folder where report is saved). This will be printed in report header box of Cover Page section.

5.

pi_rpt_title

Report Name

User Input

String

This is an optional text prompt where you can enter a report title. This will be printed on each page of the report.

6.

pi_rpt_sub_title

Report Sub-Heading

User Input

String

This is an optional text prompt where you can enter report sub-heading. This will be printed on each page of the report.

See Also:

Report Mapping Specification Document > 2.1.6. Report Prompts

Add New Parameter in Data Model

The following are the steps to add new parameter in the data model:

  1. Include the parameter in the data set. For example, you want to see data for a Case ID. Add where condition with a parameter pi_case in the data set G_NEWDS.
    Edit Data Set dialog box
  2. Click Query Builder and new parameter is created. Click OK to confirm.
  3. The parameter pi_case is now available in the parameter section of the Data Model.
    Parameters screen
  4. Add the display label for the new added parameter, which will be shown at the time of report execution.
    Edit Parameters screen
  5. Declare the parameter pi_case in the Generic Report Line Listing Package pkg_rep_linelisting. It is mandatory to declare the parameter in the report package. If the parameter is not declared, the report will not execute. Execute the report and you will be able to search data based on the newly added parameter Case ID.
  6. If the parameter is not declared in the package, the error message Component PI_CASE must be declared as shown in the enterprise manager publisher logs displays as shown below:
    Log Messages screen
  7. Once the parameter pi_case is declared in the package, the report is executed successfully.
    Execute Package screen