Solved

Adding ALL to dynamic parameters

Posted on 2014-01-28
1
256 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

Secure Your Active Directory - April 20, 2017

Active Directory plays a critical role in your company’s IT infrastructure and keeping it secure in today’s hacker-infested world is a must.
Microsoft published 300+ pages of guidance, but who has the time, money, and resources to implement? Register now to find an easier way.

Question has a verified solution.

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

Suggested Solutions

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 …
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…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 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