Passing a report multiple values for a single parameter

Apr 13, 2015 at 9:09 PM
Hi,

I am trying to pass in multiple values for a single parameter into a report running on SSRS.
The PHP code which fails with an Error, looks something like this:
    $parameters[3] = new ParameterValue();
    $parameters[3]->Name = "subcategory";
    $parameters[3]->Value = "Caps";

    $parameters[4] = new ParameterValue();
    $parameters[4]->Name = "subcategory";
    $parameters[4]->Value = "Brakes";

    $rs->SetExecutionParameters2($parameters);
Found this discussion "'Allow Multiple Values' - Parameter" which has example PHP code, yet the Error passing in 2 Params with the same name, came up as though the required param "subcategory" was not even passed in.

Would you have any other examples as to how to get this work?