Solved

Adding ALL to dynamic parameters

Posted on 2014-01-28
1
258 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 101

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

623 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