Passing input parameters in php rest_v2 client array returns only the first value of the array
Posted on June 10, 2014 at 2:03pm
When I run a report from my php application with one parameter it works fine.
But when passing more than one parameter, only the first one in the array is passed to the report.
When changing the input parameters in the php array, then still the first one is passed to the report.
All the individual parameters are working like they should in the report when I pass them.
This is my php code:
$controls = array("REPORT_LOCALE" => array("NL_BE"),"Parameter1" => array("Param1"),"CMS_USER_ID" => array("123"));
$report = $client->runReport('/reports/VZVB/License_List_1_NL', 'pdf', null, $controls);
header('Content-Description: File Transfer');
header('Content-Disposition: attachment; filename=report.pdf');
header('Content-Length: ' . strlen($report));
In this example only the "REPORT_LOCALE" parameter is passed to the report. All the others return null in the report.
I tried somewhat everything (single quotes, double quotes, ...)
Thanks for any help.
Posted on June 11, 2014 at 10:35am
Hi, it seems that you are using an old version of the PHP client. I would suggest checking out the latest version on Github and reading the provided documentation. It is very likely that this was a previous bug that has been taken care of by the latest version of the client.
You can obtain the latest version of the PHP client from the Releases page of the community site, or you can visit Github: http://github.com/Jaspersoft/jrs-rest-php-client