all groups > sql server reporting services > january 2005 >
You're in the

sql server reporting services

group:

Adding "All" value to parameter field


Adding "All" value to parameter field et_ck
1/9/2005 9:07:01 AM
sql server reporting services: Hi,

I just want to know if is it possible to add a "ALL" value to the drop down
list of a parameter field?

I can't seem to manually add the "ALL" value after I specify that the
parameter's values are taken from a query.

For example, I have a parameter, "Country" and its values are taken from a
query. Now I have the country values populated. How do I add the ALL value
from here?

Re: Adding "All" value to parameter field Randy Howie
1/9/2005 10:47:01 AM
Can we take this question one step farther? Adding a UNION will make the
word "ALL" appear in the parameter drop down list, but what technique do you
use in the report dataset to implement "ALL" in the WHERE clause?

Is there a better technique than coding:
WHERE (country = @country OR @country = 'ALL')

I find that I loose the ability to render the query in the GUI if I use
complex AND/OR combinations in parenthesis.

Thanks in advance.

Randy Howie

[quoted text, click to view]
Re: Adding "All" value to parameter field Bruce L-C [MVP]
1/9/2005 2:44:09 PM
That technique is much better than just about any other that I have seen.
Saying that you might prefer to use like and have the value be the wild card
for the database you are going against (for instance % if SQL Server). I.e.

Where (country like @country)


--
Bruce Loehle-Conger
MVP SQL Server Reporting Services


[quoted text, click to view]

Re: Adding "All" value to parameter field Julian Bowker
1/9/2005 5:24:13 PM
Use a union in the original query to add a dummy 'All' record to your
primary result set. I've used that on many similar occasions.

Julian Bowker
Marble Steps Systems

[quoted text, click to view]

Re: Adding "All" value to parameter field et_ck
1/9/2005 5:35:02 PM
Hi Julian,

Thanks for the help.




[quoted text, click to view]
AddThis Social Bookmark Button