?
Solved

SSRS - Clearing a multi-select drop down

Posted on 2014-10-26
3
Medium Priority
?
470 Views
Last Modified: 2014-10-27
I have two drop downs on my report.  One is single select and the other is multi select.  If I go in and select multiple values from the multi select drop down and run the report then it pulls back the data fine.  Now if I change the value in the single select drop down it refreshes the multi-select drop down with only appropriate values, but the values that I checked before are still checked.    

Is there anyway I can clear all the previous selections in the multi-valued drop down.
0
Comment
Question by:sherbug1015
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 15

Expert Comment

by:Vikas Garg
ID: 40405835
Hi,

I think that the parameters are Cascading Parameter due to which value of the list changes when value changes in the other parameter.

Hope the below link will give you idea of the cascading parameter

http://technet.microsoft.com/en-us/library/aa337498%28v=sql.105%29.aspx
0
 
LVL 22

Accepted Solution

by:
Nico Bontenbal earned 2000 total points
ID: 40405863
I never noticed this before but after some research I think the behavior is even stranger then you describe it. I've create a report with a singe select that shows the values between 1 and 10. And a multi select that shows the values between 2 less and 2 more than the value selected in the single select. So when I select 4 in the single I get the values 2-6 n the multi. When I then select 3 and 4 in the multi and then select 5 in the single, the 3 and 4 are still selected in the multi. But when I select 6 in the single all the values in the multi are cleared. So it looks like the values in the multi are only kept if all them are available. If one is not available the entire selection is reset.
See the sample report MultiSelect1. You'll need to change the Data Source for this report to work. Just point it to any SQL Server database.

I'm afraid there is no easy way to fix this. You just have to make sure that when you select another value in the single select all the values of the multi select are different. I've done this by using this query for the multi select:
SELECT (@single*1000000)+ Number as Number, Text FROM ...

Open in new window

So I add the value of the single select multiplied by 1000000 to the number of the multi select. This only works if the Number for the multi select is always below 1000000 of course. You might need to use a larger value.

This will break your select statement in the data query of course. You'll have to change that one too:
where (@single*1000000)+ Number in (@multi)

Open in new window

See the report MultiSelect2 for a working example.
MultiSelect1.rdl
MultiSelect2.rdl
0
 

Author Closing Comment

by:sherbug1015
ID: 40406179
Thanks.  Not that I know what is causing it, I can provide some workaround.  Thanks again.
0

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
A recent question popped up and the discussion heated up regarding updating a COMMENTS (TXT) field in a table using SSRS. http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/MS-SQL_Reporting/Q_27475269.html?cid=1572#a37227028 (htt…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

765 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