Solved

Adding ALL to dynamic parameters

Posted on 2014-01-28
1
245 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now