Can I add autorefresh to SSRS report only when parameters change? - reporting-services

I have this report in SSRS, how can I Add autorefresh by code only when parameters change by User (Without clicking red button)

YOU CAN'T
have the report automatically update after the user changes a parameter. There's no functionality built in for the parameters.
BUT YOU CAN
create your own parameter selection inside the report body that the user can click on and will rerun the report.
For this report, the Rate parameter would be hidden.
A table with one column is added to the report with the Rate parameter data as the table's source and the Rates as the detail value.
An ACTION is added to call the same report and populate the Rate parameter with the Rate field from the new Rate table.
When a user clicks on a row in the new parameter table, the report action will rerun the report using the click-on value for the Rate.

Related

SSRS Report to execute another as a main report without passing parameters

The requirement is to effectively have an initial CheckAccess report, which identifies the currently logged in Windows user and checking this value against a list of report Id + user to see if they have access.
I have written the initial CheckAccess report and setup 2 parameters within it. The first is a report ID and the second is the User, which is calculated from the SSRS UserID field. I am checking a database table for a match for both, which identifies the user can run the report.
If no entry is found I am displaying a banner on the CheckAccess report accordingly i.e. You are not allowed access to this report.
If an entry is found I would like to automatically run another report. I want to run this 'called' report as if the user had run it directly. It has a number of parameters but I don't want to have to define these in this CheckAccess report.
I've tried setting the called report as a subreport, but this requires me to setup the parameters.
Is there anyway I can run this report directly from the CheckAccess report?
I have tinkered with a separate text box, which has an Action to run the called report, which works but requires the user to click the textbox. Ideally this would be what I'm after but to automatically trigger the action.

make SQL Report hidden parameter visible when creating subscription

is there a way to make a hidden parameter visible in SSRS Subscription creation ?
Something like this
The Parameter IsSchedule will be hidden/internal(not visible to normal users) but should be visible when i create a schedule for the report.
Note: the reason i want this to be possible is for my SQL to know wether the data request it is getting is for a sql report schedule or for a person who is trying to view the report.
this way my SQL query will know if the End Date parameter data should/shouldn't be updated.
You should be able to see all Hidden parameters in the Create a Subscription wizard, which you can then assign a value to.
If the new parameter simply doesn't show up, you may need to delete and re-deploy the report:
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/337c7ae9-f15a-4718-9fac-e5c1d6a73f30/boolean-default-parameter?forum=sqlreportingservices

How to create a sub report when I click on Particular sector of Pie chart in SSRS reports

I have the requirement to generate chart in SSRS 2008 and clicking on specific region of chart I need to generate sub report. I am already done with pie chart and the report but not able to generate the sub-report dynamically
I need to generate different reports when I click on different bars in bar graph
can anyone help with that
A Subreport is a report already embedded in the report.
I think what you want is actually a Drill Through report where you click on an item and a new report pops up showing you the detail of whatever data you just clicked on.
You'll need to create a new report with a table. If your query has the detail you need, you can re-use the same query otherwise you need to create a query to show the detail you want.
You'll need to a parameter to filter for the value you select from your chart. Your chart says Emp_ID but I am guessing that's just a count and you really want the text from the X axis (i.e. Deliver Client projects... ) - your employee's Experience.
When you've created the drill through report with the parameter for the field, go back to the main report and add an ACTION. Specify your new drill through report, Add the parameter by selecting it in the Name drop down and select the field you want to get the value from (the category Group field from the bar chart).
Now when you click on a bar, your new subreport will open with the detail filtered by the field you click on. If you click on the bar for Delivered Client Projects and proficient, your new report with a table of the 31 employees will appear.
Here's some more detailed info:
https://technet.microsoft.com/en-us/library/aa337477(v=sql.105).aspx
https://msdn.microsoft.com/en-us/library/ff519554.aspx
You need to have already made the sub-reports and set your chart elements to load that report on their click through properties - You cannot simply generate a report by clicking on a report element.
If you want to go to different reports depending on data behind the pie chart section that is clicked on, you can set that up either in your original dataset with a column for which report to load or you can add a switch statement in the expression for the address of the report to load. To handle your parameters, this is probably easiest done with URL addressing.

Setting subreport parameter based on the field value clicked in parent report

I am trying to design a subreport in ssrs 2005 where the subreport's parameter value is set on the field value clicked in the parent report.
For example, the parent report has a column for the department names. If someone clicks on one of the department name values, that value is passed as the parameter to the subreport, and the subreport would then show a graph against that department value.
I have tried creating an action against the department name field and selecting the "go to report" option, selecting subreport's name and passing department field value as parameter but when i run the report and click the field value it opens the child report in a separate window as a separate report.
I am looking for a solution whereby the subreport's graph is refreshed when someone clicks on the department field value of the parent report while parent report staying visible.
Is it something possible?
The following answer and screenshot are based on SSRS 2008. If memory serves me right, it worked in a similar way in SSRS 2005 (the documentation for SSRS 2005 implies as much).
Here's the basic steps:
click on your TextBox with the field, and select the Action property
select the "Go to report" action, specify your subreport
"Add" a paramter, and pass the field's value to it
Here's a screenshot of the 2008 dialog to set this up:

SSRS Cube report drillthrough parameters

Using SSRS v3.0 (SQLServer 2008 R2 and correspsonding BIDS version)
I have successfully implemented a drillthrough report on cube data. The child report will use the parent report parameters as selected by the user when user clicks on a report cell. But what I really want is the selected cell parameters to be passed to the child report, not the parent report parameters used to create the report. Example: for parent report, user selects Year, Quarter and Category. Report displays a cross tab, expandable as drilldown to a low-level cell. Currently when the cell is clicked, the child report uses the broad params of the parent (as set up in the cell-textbox Action "go to report"). I want the cell Action to use parameters derived from only that particular cell: it's year, month, category, etc.
I have searched for but cannot find a report property that accesses cell parameters. (BTW, in the Cube browser, the Action there automagically does this for me and I get correct subreport data for only the cell selected).
In the drillthrough action on the parent report, you use the field names for the items the user is clicking (like Fields!Year.Value, Fields!Quarter.Value, etc.) and assign those to the child report parameters in the same way that you can pass parent parameters to the child parameters. When the user clicks a cell to launch the child report, the current scope for year, quarter, etc. gets passed to the child report as parameters.