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.
Author |
Topic |
gbritton
Master Smack Fu Yak Hacker
2780 Posts |
Posted - 2013-11-12 : 15:46:04
|
I'm setting up a linked report. The main report has several values that I want to send to the sub-report. So, I define an Action on a column, add the parameter mappings and run the report. however, when I click on the column to link to the sub-report, none of the parameters are populated with the data from the main report.I tried just typing some text in the parameter mapping and THAT data WAS passed to the subreport. So I'm guessing that SSRS is finding nulls in the data I want to pass down.Note that the column with the action defined is an Aggregate column (a count function). Would this mean that the other columns would not be available to me? |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-11-13 : 07:49:42
|
all columns would be avialble to you so far as they're included in dataset.------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
gbritton
Master Smack Fu Yak Hacker
2780 Posts |
Posted - 2013-11-14 : 10:46:40
|
quote: Originally posted by visakh16 all columns would be avialble to you so far as they're included in dataset.Should be, but their contents are null when defining the linked report on an aggregated column. When I defined the linked report on a non-aggregtated column, it works
|
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-11-14 : 13:28:50
|
quote: Originally posted by gbritton
quote: Originally posted by visakh16 all columns would be avialble to you so far as they're included in dataset.Should be, but their contents are null when defining the linked report on an aggregated column. When I defined the linked report on a non-aggregtated column, it works
When clicking on aggregated column what are the value you want to sent us parameters. ideally you'll sent that set of values based on which you did the aggregation in main report so that linked report result exactly matches the detail of aggregated value displayed.------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
gbritton
Master Smack Fu Yak Hacker
2780 Posts |
Posted - 2013-11-14 : 14:11:50
|
quote: Originally posted by visakh16
quote: Originally posted by gbritton
quote: Originally posted by visakh16 all columns would be avialble to you so far as they're included in dataset.Should be, but their contents are null when defining the linked report on an aggregated column. When I defined the linked report on a non-aggregtated column, it works
When clicking on aggregated column what are the value you want to sent us parameters. ideally you'll sent that set of values based on which you did the aggregation in main report so that linked report result exactly matches the detail of aggregated value displayed.
Yes indeed. I chose the parameters based on the set of values based on which i did the aggregation in main report . If I set this up on the aggregation column itself, the parameters passed to the linked report are all null. If I use exactly the same set up on the least significant of the set of values based on which i did the aggregation in main report, all the values are there. |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-11-14 : 14:31:13
|
Hmm..I've done similar requirements and in all cases what I did was adding navigation action (jump to report/url ) in textbox containing aggregated value and passing other fields in the dataset (based on which grouping was applied) values as parameter values and it worked for me.------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
|
|
|
|
|