Solved

Adding ALL to dynamic parameters

Posted on 2014-01-28
1
254 Views
Last Modified: 2014-02-04
Hi

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
0
Comment
Question by:halifaxman
1 Comment
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39815004
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
UNION ALL
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
    TRUE
Else
    {YourField} = {?Param1}
)
AND
rest of the selection formula

You can also use

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

mlmcc
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

778 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question