Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


ssrs pass values between reports


ssrs pass values between reports

Author
Message
wendy elizabeth
wendy elizabeth
Mr or Mrs. 500
Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)

Group: General Forum Members
Points: 587 Visits: 721
In a ssrs 2008 R2 report, I need to pass parameters to existing subreports that are currently called. Basically there is a main sssrs 2008 r2 report and there are 3 subreports. I would like subreports #1, subreport #2, and subreport #3 to receive the value values of customer number and customer name. I am hoping you can tell me and/or show me code that would tell me how to add parameters parameter values that are used to call these subreports.

Do you have direct examples of how to pass parameter values from main report to sub report 1? How is subreport #1 suppose to access obtain the parameter values passed from main report? How does sub report #1 pass the same parameter value to sub report #2? How is subreport #2 suppose to obtain (read) values from subreport #2?
Steven.Howes
Steven.Howes
SSChasing Mays
SSChasing Mays (660 reputation)SSChasing Mays (660 reputation)SSChasing Mays (660 reputation)SSChasing Mays (660 reputation)SSChasing Mays (660 reputation)SSChasing Mays (660 reputation)SSChasing Mays (660 reputation)SSChasing Mays (660 reputation)

Group: General Forum Members
Points: 660 Visits: 2328
it depends how you want to access the, if you use a subreport from the toolbox then you set the parameters the same way as you would a dataset. there should be a parameter tab on the properties window of the subreport.

If you use a text box action to go to a URL then it gets more hairy especially if you have a lot of parameters.

Which way were you thinking of accessing the subreport?
wendy elizabeth
wendy elizabeth
Mr or Mrs. 500
Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)

Group: General Forum Members
Points: 587 Visits: 721
I am using a textbox property and using the action to go to a 'report'. I am not using the url option. I am using the textbox properties action to go to a report.

In that case, can you tell how to pass the parameter value from the main report and how subreport #1 is suppose to access the parameter value? In next step would be for subreport #1 to pass the parameter value and how sub report #2 will be able to obtain the parmater value.
Steven.Howes
Steven.Howes
SSChasing Mays
SSChasing Mays (660 reputation)SSChasing Mays (660 reputation)SSChasing Mays (660 reputation)SSChasing Mays (660 reputation)SSChasing Mays (660 reputation)SSChasing Mays (660 reputation)SSChasing Mays (660 reputation)SSChasing Mays (660 reputation)

Group: General Forum Members
Points: 660 Visits: 2328
When you choose the report in the drop down BIDS should pick up the Parameters. Then Right under that there's a spot to add parameters, you add the parameters then you link the parameters in the called report to the parameters in the Main report.

The dropdown will show you the fields fro the current dataset, but if you want to link to you main report parameters, there's an expression editor and you can use =Parameters!ParamName.value
wendy elizabeth
wendy elizabeth
Mr or Mrs. 500
Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)Mr or Mrs. 500 (587 reputation)

Group: General Forum Members
Points: 587 Visits: 721
Thanks!
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search