SQL Server Reporting Services Master/Detail Report - sql-server

I have a report which has a tablix as the master report with a sub report which relies on two fields from the master report. When the master report is opened, the sub report is displayed correctly. However, the sub report is not updated when I click on the next row in the master report; I would expect it to be refreshed based on the values of the two parameter fields.

I think you are misunderstanding how subreports work and what they are intended for.
As stated in the MSDN documentation:
A subreport is a report item that displays another report inside the
body of a main report. Conceptually, a subreport in a report is
similar to a frame in a Web page. It is used to embed a report within
a report.
Typically we use subreport(s) when creating a main report that acts as a container for one or more related reports. This is not the same as Master/Detail in the way that you are understanding it. For what you require to work, SSRS would have to be capable of refreshing the subreport independently within the body of the main report. And it simply cannot do that.
What are your options?
Create a drillthrough report by defining an Action on a textbox or placeholder so that when the clicks on it they are taken to a new report showing the detail. Clicking the back button in the report toolbar returns them to the main report.
Merge your queries to create a single report. You can then use grouping and toggle items, creating a drilldown report, allowing your users to interactively hide/show detail rows as desired.
Of the two, I would recommend the second approach. In my experience users too easily confuse the SSRS toolbar back button with the browser back button.

Related

SSRS drill through report, How do I locate the referencing report name from main report

I have a report (developed by a previous employee), some of the columns(data) are clickable, when clicking the number(data on some of the columns) it opens another report. But when in the design mode from the first report, I could not figure out the relation to any of the clickable report name. I have checked Action property and almost with my knowledge all possible, but still unable to locate the reference/pointer to another report. Could you please let me know, how do I locate the reports? or the pointer. As I need to add a filter and columns to most of the reports. Any help would be greatly appreciated. Please let me know how do I find and fix the report as I need to add a filter and add a column to all reports.
Also, I think it's drill through the report but unable to locate the link for each column, the reports are deployed into the reporting server and accesses through the UI portal
The main report has 6 clickable columns and I see all six reports in the reporting server as well. But not sure how those are connected and how the parameters are passed, as I need to add a new parameter and new columns to all the reports except the main report
Please let me know if you need more information
Thank you
I also faced the same issue while exploring an old SSRS report and after struggling for an hour I found the previous developers have defined this action property on the field's action property inside a textbox. So instead of looking at the textbox action property, look at the field's action property and you will find the drill through report name and parameters passed.

Inconsistencies with report layout in SSRS 2016

Using SSRS, I am creating a report that will show some payroll information. The desired layout is to have one page consist of a single employee's information for a single paycheck. It seemed to me that having a List and putting rectangles in it was the best way.
The problem is that I want black borders on each rectangle/text box, and they are appearing inconsistent. In Design/Preview mode in Visual Studio, it looks just how I would like. However, when I deploy to the server, it does not. Thoughts?
This is how it looks in the Design/Preview mode in VS
This is how it looks when deployed to the server. Notice the type and check date fields have space between them as well as the Job Class and Empl. Type fields, and the Printed field has grown vertically a little. NOTE: This is mock data
You need go to the Build-->select your Project and click on deployment the changes which were made by you will reflect in the SSRS Report.

Can autorefresh function still work after I publish (export) a report from SQL server report builder?

I'm learning how to use Microsoft SQL server report builder 3.0. I know there is a function in the report called autorefresh. It works when I simply run the report within the report builder. I'm thinking can it still be refreshed after the report is exported.
Another question may related to this autorefresh functionality. When I add dataset into report builder, does it actually load the data into report builder or set up a link between report builder and database? If it sets up a link does that mean when I change something in database, it will reflect on my report builder after I refresh it.
All I want to do is keep the report up to date even after I export it.
Really keen to know the answer.
Thanks in advance.
Make properties visible(View Tab > Check Box View)
Then navigate to report properties(Click on blue space around page). It should say Report in bold at the top of properties.
Expand the Other list and AutoRefresh is the first one.
It's by default set to 0. It's measured in seconds so changing it to 30 will make your report refresh every 30 seconds.
Just so you know, you'll find that even though reportBuilder is the new SSRS(BIDS), it's still very, very similar. So don't feel like you need to always only look at Report Builder only. SSRS tutorials and other facts will be either identical or similar enough to figure it out.

How to display RDL report in WPF for user to edit and save

we have a large number of existing reports (.rdl files), the business need is to enable business users to change the text on those report directly, they don't have report designer of any sort.
So requirement is to create a WPF app, that will allow user to browse to one of those reports, display them in readable format (not as xml but formatted similar to what the real report looks like, as if they are opened in the designer), and then allow user to update the text (essentially the contents inside those tags), and save the report. so when it's ran it'll reflect those title, heading, text etc. changes.
Did some research there are something like ReportViewer, Syncfusion reportviewer that can take care of displaying part in WPF, but none of them seems to allow user to edit and save.
Are there any suggestions on what are the options to achieve this? I am thinking creating some mapping/translating between those xml tags and html so the content can be displayed in a readable format, and put those user editable fields in array of values to keep track of changes and replace back to the original .rdl file. but that all seem too complicated and also performance can be a concern...there should be a better way!
your help is greatly appreciated!
Instead of having these values stored inside the report, I would store them in the database. Don't have any static values in the report. Everything shown in the report is loaded as paramters that can be configured.
This way you can create a UI that allows you to change the values of these configurations and a button to load the report viewer with a fresh version of the report using these values. This wouldn't be a full on report editor but if you created some base templates that meet the business needs, they'd be able to make some general modifications to the report such as Titles, alignment, logos, etc.

Excel like multi tab report in SSRS

Is there anyway possible to have a SSRS Report that has excel like tab? Bascially a user has many data saved in Excel sheet with many tabs (close to 7-8) with little difference in those tabs. Hence he was looking for to built the report that when exported to excel can bring data in those tabs.
Second Question: When I export the report to excel, is it possible to have predefined filters in excel?
Let me know for any questions.
Thanks!
You can configure the report (2008R2 and up) to break the data up into named tabs when exporting to Excel...
Reporting Services export to Excel with Multiple Worksheets
I don't think you can have predefined filters in excel (I'm assuming you mean the Excel Auto-Filter stuff on the data ribbon tab) with the basic export to excel functionality in SSRS. If you go custom (via the ReportViewer control) then you could add logic to update the export file (after exporting) to programmatically add in the filtering options.
As far as i have worked on SSRS, i dont think so we can import parameters in excel same as in report.
However we can show data in separate sheets in excel
As you said data can be in 7-8 sheets, there are properties named 'PageName' and 'Pagebreak' of a tablix. Write the name of the page and add page break between those tablixes.
This will create sheets and also give names on those sheets.

Resources