ssrs 2008 default parameters to onother report - reporting-services

I am trying to pass parameters from one report on SSRS to another by using "Go to URL", however when the second report shows I have to re-select the parameters (they don't pull through). Do you have any suggestions?
I have researched this for the last 3 days and nothing is giving the result I require.

Make sure the URL you're accessing is something like:
http://SERVERNAME/reportserver?[PathToReport]&rs:Command=Render&Parameter1=[value]&Parameter2=[Value]

You can use the "Go to report" action and pass the parameter value from report 1 to the report 2.
The following screen shows how to pass parameter from report1 to report2 using "Go to report" action:

Related

Dynamic Page Break on SSRS Report based on Parameter Selection

Currently SSRS Report is grouped by the following in the Row Group. When I export the report to excel it is broken into tabs by that ID. I am now passing a Parameter to the report that if set to false, the exported excel report should return only one tab. After doing a little research created an expression in the PageBreak Disabled Property. Whenever I run the report now no matter if I set the parameter to True or False it only returns a single tab. Can anyone offer any insight? THanks!
[![enter image description here][2]][2]
.Data File strikes again. Cleared cashe the expression worked.

How can I tell if my SSRS report is running as a subreport?

I have a report. The report has a header. Sometimes, users view my report by itself. Other times, they view it as part of a larger combined report.
The combined report also has a header. So, in 'subreport mode' my report ends up with two headers.
I want to hide the header of the subreport, but only when it is a subreport.
I'm hoping for something like Visible=IsSubreport. Is there a way for my report to tell if it is running as a subreport? Or do I have to add a new parameter and pass it in from the outside, telling it whether it is a subreport or not?
You can add a parameter as isSubReport to you report like this:
And then pass "true" from the Sub report properties menu.

Setting ShowParameterPrompts property when returning from a drill through report

In SSRS 2012, I have a Main Report that takes 1 parameter, a dropdown. I have a drill through report that is displayed from a Main Report. When the user is viewing the drill through report, I added a link on the drill through report that goes back to the main report. I use the same parameter value so that the main report is displayed before the drill through report was selected.
The main report displays correctly, but the paremeter area is hidden when the user comes back from the drill through.
I read that there is a ShowParameterPrompts property but I cannot find where to set it.
Is there anyway to set this property from the subreport so the parameter area is showing?
UPDATE
In the Action tab, make sure you select the Go to report option. If you specify the report this way rather than a URL, SSRS will use the appropriate report viewer controls.
You should see something like ...RSViewerPage.aspx?rv:RelativeReportUrl=... in your URL after you click on a drill-through.
The settigs should look like this:
EDIT:
Since this isn't working, let's try the URL method instead. Try this in a browser first to get the URL right and then specify it in the reports. To add the parameter in the URL after ".rdl" add "&rp%3a", then the name of the parameter, "=", and the value. So in your case:
= Globals!ReportFolder & "/SurveyResults.rdl&rp%3aSurveyName=" & <expr>
Of course the expression at the end there would be the value for the parameter. If your survey names have spaces, you'll need to URL encode them by replacing the spaces with "+" or "%20".

How to reload report with same parameters in SSRS?

Scenario - I have a multi-value visible (user defined) parameter that I use in the dataset query, and I have a link in the report that directs the user to the same report (but it does something else that is irrelevant to this topic). However, when the report reloads, the user has to set the parameter again from the drop-down list.
Question - Is there a possibility to pass the parameter that the user already set the first time, and reload the report without forcing the user to set it again?
What I tried so far (with no success) - I tried passing the following parameter values to the report:
Parameters!param_name.Value(0)
param_name
[param_name]
The answer is - Yes, it's possible.
Have you tried - "=Parameters!param_name.Value" without "(0)" ?
Go to the Action tab of the Text Box Properties, select "Go to report" as Action, specify your current report as the destination report. And choose the parameters.
It works.

SSRS Query Based Parameters Not Refreshing

I am having a problem getting query-based parameters to refresh in SSRS when the View Report or Refresh button is clicked. To illustrate the problem, I created a report with 2 parameters. 1 parameter is set to get the timestamp Now() using the SSRS function. The other parameter is set to get the value GETDATE() from a SQL Server database query. When I view the report, both parameters accurately get the timestamp. When I hit the View Report button or Refresh, neither parameter refreshes. The only way I can get the timestamps to refresh is to re-open the page up in a new browser. Is there anyway to get these timestamps to update without having to open a new page/session? Thanks!
Fix: Build a main report with no parameters. Embed a subreport to your report. In the subreport, build a parameter called RandomTime. In the main report, go to Subreport Properties and feed the parameter RandomTime with the Value =Now(). To properly refresh all of the query based parameters in the subreport everytime you hit refresh, they must depend on RandomTime. The easiest way I found to do this add a column to the SQL query like this SLECT #RandomTime AS DummyColumn. It ensures that the query will repull and all the parameters will refresh everytime the refresh button is clicked
Do this: Create a master report and add your report as a sub report. Make a dataset on the master that runs your sql query. Then, pass the result into the sub report parameter as an expression.
Example--- =First(Fields!YourValue.Value, "DataSet1") ---