Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Use a php-array as a report-parameter
iparker
Hello,
Is the a possibility to use a defined php-array as a parameter in a birt-report (working with the php-javabridge)? If I define an array like this:
$bla = array(‘firstname’ => ‘Timo’, ‘city’ => ‘Hannover’, ‘age’ => 29);
Is there a possibility to work with this array in the birt-report?
Thanks for some answers!
Timo
Find more posts tagged with
Comments
JasonW
Timo,
Currently BIRT reports do not support object types as parameters. This should be changed in the future, maybe in BIRT 2.6.
The Bridge code could be modified to pass a Java object to the report context which could be used in a report though.
Jason
iparker
Hello Jason,
Thanks for your answer. Could it be a way to use a JavaScript-Array in the report. I tested a little bit with it and created a variable in the report like this:
var test = new Array();
test[0] = "Kat 0";
test[1] = "Kat 1";
test[2] = "Kat 2";
test[3] = "Kat 3";
test;
Is it possible to set a variable with the php/javabridge or is it just possible for parameter? Could it be a way to “transform” a php-array to a javascript-array and assign it to use in the birt-report?