SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Parameter Get All Values


Parameter Get All Values

Author
Message
kaththecoder
kaththecoder
Grasshopper
Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)Grasshopper (15 reputation)

Group: General Forum Members
Points: 15 Visits: 23
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.
geoff5
geoff5
Say Hey Kid
Say Hey Kid (674 reputation)Say Hey Kid (674 reputation)Say Hey Kid (674 reputation)Say Hey Kid (674 reputation)Say Hey Kid (674 reputation)Say Hey Kid (674 reputation)Say Hey Kid (674 reputation)Say Hey Kid (674 reputation)

Group: General Forum Members
Points: 674 Visits: 543
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search