Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3536
  • Last Modified:

Oracle BI Publisher parameter selection error

There are three parameters in the report.
Upon clicking view the results are displayed.
The issue is if one of the parameter is changes and the others are not changed.
If the User hits view button the report throws an error.
The report only works if all the parameters are chosen again.
Please help me to identify the issue and fix this.
Thank you.
0
RND2006
Asked:
RND2006
1 Solution
 
schwertnerCommented:
This is normal

see

Oracle Business Intelligence Publisher Report Designer's Guide
Release 10.1.3.4
Part Number E12187-01

Seems you have to investigate the dependent values:

Text - this type allows the user to enter a text entry to pass as the parameter. Enter the Display Label for the parameter and the Text Field Size in characters. You may also enable the following options:

Text field contains comma-separated values - select this option to enable the user to enter multiple comma-separated values for this parameter.

Refresh other parameters on change - performs a partial page refresh to refresh any other parameters whose values are dependent on the value of this one.

Also investigate the default value:

Enter a Default Value for the parameter, if desired. Enter * to pass All as the default.


Note: Using * passes a null, so you must handle the null in your data source. A method to handle the null would be the standard Oracle NVL command, for example:

where customer_id = nvl(:cstid, customer_id)

where cstid is a value passed from the LOV and when the user selects All it will pass a null value.

If your data source is the Oracle BI Server, use the following macro to handle the null:

{$ if ${sYear}='*'$}
{$elsif ${sYear}='2000' $}
where Year = :sYear
{$else $}
where Year = :sYear
{$endif$}
where Year is a value passed from the LOV and when the user selects All it will pass a null value.

Note that the test operator must be either "=" or "!=".


0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now