Groups | Blog | Home
all groups > sql server reporting services > june 2006 >

sql server reporting services : Conditionally load Drop downs in Parameter toolbar



JrMcG
6/27/2006 2:35:16 PM
In trying to incorporate business rules into my SSRS report, I need to be
able to conditionally load drop downs based upon what the selects for other
drop downs.

Can anyone tell me how? Example:
DropDown1 = Country
DropDown2 = State/Region

How Can i leave DropDown2 empty until they select from DropDown1?

Thanks.

weilu NO[at]SPAM online.microsoft.com
6/28/2006 5:17:31 AM
Hi JrMcG,

Thank you for your posting!

Based on my experience, you could do the following step to get the
Parameters related.

1. Create a dataset and add a Report Parameter named Country.

2. Create another dataset named States and use the parameter in the query
text. For example:

select State from tbl_Region where Country = @Country

3. Create a new Report Patameter named State and in the Available values,
you need to use From query, and choose the dataset States, Value filed and
Label filed use State.

Then, in the preview, you could see the Parameter State could not get the
value untill you specify the value of Country.


Please try the above steps and let me know the result. Thank you!

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
weilu NO[at]SPAM online.microsoft.com
7/3/2006 2:07:44 AM
Hi JrMcG,

Have you got any chance to check this issue? Please let me know if you need
any help, thank you!

Sincerely,

Wei Lu
Microsoft Online Community Support

==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
D Graham
7/3/2006 7:58:26 AM
You are looking for a "Cascading Parameter" Report; there is a good
example in the sample set for SSRS 2005.

Dennis Graham
[quoted text, click to view]
Glaciered Pyro
9/28/2006 2:51:01 AM
My subject is very closeley tied to this one so i hope it's OK if I post
here...

I did the same thing but also added an 'all' option in my dataset. Selecting
'all' and a single option works but when selecting multi values the report
breaks. What can i do in my WHERE claus to get this working. Without it the
Bussiness Rules are useless.

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