I’m facing an issue with the use of report parameters inside beforeOpen dataset script for BIRT.
I want to use multiple value as a parameter. Currently the only option available is to define the query with the multiple values inside the beforeOpen dataset script.
But this doesn’t work because the report parameter doesn’t seems to be defined in the beforeOpen dataset script.
It’s working with a single value when I use report parameter inside the dataset and add a dependency in ReportServer.
Am I missing something or this is a limitation of ReportServer ?
I’m not sure, that this is actually the cause of your problem.
What I tried is:
Create a birt report with dynamic multi-select string parameter “cities”
Defined the following beforeOpen script for my Data Set:
Packages.java.lang.System.out.println(Packages.java.util.Arrays.toString(params[“cities”].value));
Created the matching parameter configuration in ReportServer and uploaded the report
When I run the Report in ReportServer I can see the selected parameter values printed to the (tomcat) console.
So I suppose there is some other issue with your script.