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


Pass Multiple Values in a single parameter to a SSRS 2008 Report from PHP


Pass Multiple Values in a single parameter to a SSRS 2008 Report from PHP

Author
Message
jamey8420
jamey8420
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 135
I have a PHP page that performs some table updates for me for a particular record. I am passing the necessary parameters from my SSRS 2008 report to this PHP page, and would like to then pass these parameters back to the report and re-render it. I need to pass back in the URL. When I pass a single value, the report renders fine. The SSRS report is being run in an iFrame, which is why I need to pass back through an URL.

Here is a sample of the URL as I'd like to see it:

http://server/jamey/report.php?report=test&status=A&budget=5000&dept=BS,ZA&arrange=004,006,010


parameters dept and arrange are multi value parameters. I know that passing these values comma delimited won't work, nor will putting them in quotes, etc...

If I understand how I need to form the URL so the report will render with multiple values, I should be fine. Just cannot figure that part out.

Any questions, please let me know.

Thanks,
Jamey
jamey8420
jamey8420
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 135
Another way to think of this is as such: I can pass the variables back to the report; I'm just unable to check the boxes of those variables. I am able to default multiple options in the multi-select variable by using a query. I would think something along those same lines would work, only specifying the variables I'm passing back to the report.
jamey8420
jamey8420
SSC Rookie
SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)SSC Rookie (29 reputation)

Group: General Forum Members
Points: 29 Visits: 135
For those who this may help, I ended up creating a second version of the report. And then I passed the comma-delimited values to the second report and rendered that.
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