SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 Passing paramaters to a linked report
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

gbritton
Constraint Violating Yak Guru

398 Posts

Posted - 11/12/2013 :  15:46:04  Show Profile  Reply with Quote
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

India
52309 Posts

Posted - 11/13/2013 :  07:49:42  Show Profile  Reply with Quote
all columns would be avialble to you so far as they're included in dataset.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

gbritton
Constraint Violating Yak Guru

398 Posts

Posted - 11/14/2013 :  10:46:40  Show Profile  Reply with Quote
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

Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 11/14/2013 :  13:28:50  Show Profile  Reply with Quote
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 MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

gbritton
Constraint Violating Yak Guru

398 Posts

Posted - 11/14/2013 :  14:11:50  Show Profile  Reply with Quote
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.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 11/14/2013 :  14:31:13  Show Profile  Reply with Quote
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 MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000