Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

ssrs 2012 paramter values Expand / Collapse
Posted Thursday, December 26, 2013 7:53 AM


Group: General Forum Members
Last Login: Friday, February 5, 2016 1:59 PM
Points: 481, Visits: 573
In an existing SSRS 2012 dashboard application, I need to pass the same 5 parameter values between the existing 48 to 62 sub reports that can be called. I am trying to determine the best way to accomplish this goal.

Listed below are the options I am thinking about:

1. Cascading parameters would not work because all 5 parameter values are not sub values.

2. I could pass the 5 parameter values individually to each sub report; however I am thinking there should be an easier option. There would be a high chance of maintenance problems due to the ability of each sub report being able to call each other and the number of parameters that can be passed.

3. I am thinking that I could pass all 5 parameter values together as 1 combined parameter.

4. Do you think the following link would help to solve my problem:

When I was actually accessing each of the 5 parameter values in each applicable sub report, I would use a 'mid' function call to parse out the 5 values I need. Would this option work? If so how would you setup the code? Would I use some kind of 'custom function'? If so how would you setup the code for the 'custom function'?
Post #1525968
Posted Thursday, January 2, 2014 10:22 AM
SSChasing Mays

SSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing MaysSSChasing Mays

Group: General Forum Members
Last Login: 2 days ago @ 7:43 AM
Points: 641, Visits: 2,284
One of our vendors passes all their parameters as XML. I'd have to look at exactly how they do it, but if I remember correctly they build the XML in a report dataset and use a hidden parameter set to the value of that dataset. Then they pass that parameter to their SP.

Inside the SP they shred the XML back into the original Parameters. This way each SP gets only the parameters they need, and they have the parameter name, type and the Value.

The only draw back is having to deal with XML (personal Bias ;) )
Post #1527216
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse