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)
 ssrs 2012 paramter values

Author  Topic 

jassie
Constraint Violating Yak Guru

332 Posts

Posted - 2013-12-26 : 09:48:52
In an SSRS 2012 dashboard application, the following statement is used to go to the previous ssrs report page that was viewed:
javascript:history.back(1).

This line of code only works on the report server. This line of code does not work in bids 2012.

Thus due to this statement, I have the following questions:

1. Is there a similar statement that can be used so that the code works in bids 2012? If so, what code could be used?
Would that code reminder the value of parameters that are passed to it?
2. Does the statement " javascript:history.back(1):", 'remember the parameter value that were used? If so, can you explain to me how the parameter values are remembered? If not, can you show me code that would 'remember' what parameter values that were entered by the user on the web page?

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2013-12-26 : 14:16:00
Instead of the javascript code, what you could try is to to use jump to report property of the back button to add a url for the main report (ie report from which you navigated and reached current one)
Then you need to add corresponding parameters in your current report as per that present in main report. Make all of them hidden and set them all to Parameters!MainReportParam.value in the jump to report option from main report. This will make sure they will pass the same values back when you click the back button. So in effect it will be same as your navigation button from main report with only difference being name of report as main report name.

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

- Advertisement -