c# - SSRS: Master-detail report with two datasources -
I have two local data sources that I can put into the report. there is no problem. But how do I set up reports? A data source has a list of employees, and information about them. Secondly, there is a bunch of hours of work for each employee.
I would like to use a table for the list of employees, and then after each employee's working hours (with their working hours).
Is this also possible? Do I have to use sub-reports? Do I have to merge them into a data source? ==
As far as I can tell, without nodes in one another, it is impossible without a dataset Using a subreport
This means that you need to do one of two things:
-
Reflect your data sources at the same data source, for example Do the work of connecting between employees and working hours for each employee. Then you can use the grouping properties of table objects to format the list as you want.
-
If the two data sources are not practical, then you can use the sub-report that you want to work hours, a subreport with a data source Create and give a parameter for the current employee. Filter work hours by this parameter.
In your parent report, you can keep the subreport in the list, and pass the current line employee ID as a parameter.
Note that there are some formatting quincues with using sub-reports. I am able to work around them in most cases, but the most preferred method will definitely be number one up.
Comments
Post a Comment