• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

Adding ALL to dynamic parameters


CR 2008

I have a dynamic cascading parameter which I have created in a Business View, the command is below

Select Type, Scheme
From table

I am using this in the report and it works fine, i.e. when I select type it displays all the schemes for that type

I now want to add ALL to the parameters, so when you select ALL in the Type parameter it shows ALL schemes?

Is this possible, Thanks
1 Solution
It is possible assuming the parameters are strings.

You need to add a command to the report as a data source.  The command will be

SELECT "ALL" as Param1 FROM YourTable
SELECT YourParameterColumn FROM YourTable

Don't link the command to the existing data.
Change the parameter to use the command as the source of the dynamic values.

If you don't want to do that then there is the option to make the parameter OPTIONAL and change your selection filter to

If Not HasValue({?Param1} then
    {YourField} = {?Param1}
rest of the selection formula

You can also use

   (Not HasValue({?Param1})
    {YourField} = {?Param1}
rest of the selection formula

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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