Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

ssrs 2008 r2 pass valuesd Expand / Collapse
Author
Message
Posted Monday, October 21, 2013 4:02 PM
Old Hand

Old HandOld HandOld HandOld HandOld HandOld HandOld HandOld Hand

Group: General Forum Members
Last Login: 2 days ago @ 9:33 AM
Points: 379, Visits: 451
In an existing SSRS 2008 r2 report, I would like to pass the values of customername and
customer number to several different rdls. The values for customername and customer number
are not part of the details that appear in the report. I am going going to pass the values as
parameter values.

If this is possible to pass the values between rdls as just parameters? If so, can you point me to a
link that will show me how to accomplisdh this goal?

If not, can you show me how to pass the values as a detail line that is not displayed in the RDL's dewtail lines?
Post #1506897
Posted Tuesday, October 22, 2013 7:31 AM
SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Friday, December 12, 2014 8:24 AM
Points: 2,818, Visits: 2,567
I believe if the columns you need are part of the dataset, you can use them to pass as parameters to another report as you would with values that show in your report.
Post #1507130
Posted Wednesday, October 23, 2013 7:16 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, December 10, 2014 9:58 AM
Points: 39, Visits: 124
Daniel is correct. The fields only have to be part of your dataset in order to filter on them using parameters. You do not have to display these fields in your report.

For instance, your dataset query could look like this

SELECT Field1, Field2, Field3, etc.
FROM Table1
WHERE CustomerNumber = @CustNum AND CustomerName = @CustName

As for passing the parameter to multiple reports (rdls), each report would have to use a dataset that referenced those parameters. Luckily you don't have to create a separate parameter for each report in your solution. You can re-use the same parameters across multiple reports.

Best of Luck
Post #1507610
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse