SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Page Load Event from a drop down in SSRS - is it p
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

pvong
Yak Posting Veteran

52 Posts

Posted - 01/18/2013 :  10:10:38  Show Profile  Reply with Quote
I'm new at this SSRS thing and I'm using SQL 2008 R2. I have a simple drop down option that says page1 and page2. Is it possible to have a event that when you hit view report it will run some codes in the background?

If Page1, then paramA=123

if Page2, than paramA=789

Am I just not seeing it. Just want to change some param values based on the dropdown selection.

Thanks!

------------------------------
Using VS2010 / Learning in VB.Net / Win2008 R2 / SQL 2008 R2
Be kind to the newbies because you were once there.

visakh16
Very Important crosS Applying yaK Herder

India
52249 Posts

Posted - 01/18/2013 :  13:43:23  Show Profile  Reply with Quote
you can set it in parameters tab under default value by giving an expression like

=IIF(Parameters!Param.value="Page1",123,789)


------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000