Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 Analysis Server and Reporting Services (2012)
 Cascading parameter problem

Author  Topic 

satish.pavuluri
Starting Member

2 Posts

Posted - 2013-06-13 : 01:33:22
I have a table in sql server with data.

create table test(col1 varchar(10),col2 varchar(10))
insert into test values ('Area','v1')
insert into test values ('System','v1')
insert into test values ('System','v2')

select * from test


Table look like bellow.

Table name: test
________________
| col1 | col2 |
________________
|Area | v1 |
|System | v1 |
|System | v2 |
| |
_______________


I have a report in ssrs with two parameters.

One parameter is "para1" which has values with Dataset query is
select distinct col1 from test;
Note: this parameter is not multivalued parameter.

Second parameter is "para2" which is cas cade and multivalued parameter with dataset query is
select distinct col2 from test where col1 in (@para1)



I have executed the report by selecting "Area" in para1 and "v1" in para2.
After execution i have again select "System" in para1 in first drop down. But para2 is automatically selecting "v1", Because previous
execution we have selected this "v1".




But my requirement is When we select "system" in first parameter as like above, it should not select "v1" in second drop down..!


Note: I have not set any default values in any parameter.

Any reply's highly appreciated.



satish

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-06-13 : 02:05:44
when you change the value in first parameter is it refreshing the report?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

satish.pavuluri
Starting Member

2 Posts

Posted - 2013-06-13 : 05:17:25
Refreshing but value "v1" was in selected mode.

satish
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-06-13 : 05:25:23
quote:
Originally posted by satish.pavuluri

Refreshing but value "v1" was in selected mode.

satish


So you want it to remain as no values selected once you change it to System?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
   

- Advertisement -