Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Parameter Get All Values Expand / Collapse
Author
Message
Posted Saturday, September 28, 2013 12:53 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, March 6, 2014 7:10 AM
Points: 9, Visits: 13
Hi

I have created a parametered called 'Pay Via"
From the dropdown box, the user can select:
- Visa
- MasterCard
- PPA
- Robs Amex
- American Express
-Invoice

My report is working fine if the user selects one of the above options.
However, I need to add an option to this dropdown box called "All".

I just don't know to reference all of the above pay vias into the "Available Values" area.

Thanks.
Post #1499710
Posted Monday, September 30, 2013 10:09 AM
SSC-Enthusiastic

SSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-EnthusiasticSSC-Enthusiastic

Group: General Forum Members
Last Login: Friday, April 25, 2014 4:20 PM
Points: 152, Visits: 448
There are a couple of ways to do what you want. No matter what approach you choose, you will have to change the filter to allow for multiple options. The simplest change you can make to the parameter is to check the option "Allow multiple values." The filter will need to be changed from a comparison of equality with one value (Fields!name.Value = @Parameter) to a comparison against multiple values: Fields!name.Value IN (@Parameter).

The other way is to provide a manual label of "All" and a value of "*" (asterisk) and use a comparison of LIKE. If the filter is in a SQL statement, instead of an asterisk use the percent sign (%).

Hope this helps.

Geoff
Post #1500093
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse