Hi folks,
does anyone knows how I can pass multiple values to the jasper server via the rest_v2 interface?
I use this for a singleValueText: host/reports/Reports/Report.pdf?PARAM=Text
I use this for a singleValueDate: host/reports/Reports/Report.pdf?START_DATE=2015-03-02&END_DATE=2018-03-18
But how is the syntax for multiple values?
Best Regards
Florian
2 Answers:
Look into JRS-web-services-guide.pdf
Following is the example from the pdf
http://<host>:<port>/jasperserver[-pro]/rest_v2/reports/reports/samples/Cascading_multi_select_report.html? Country_multi_select=USA&Cascading_state_multi_select=W A&Cascading_state_multi_select=CA
Ok, and how should I define the parameter in the jasper studio?
As java.util.List or java.util.Collection?
My parameter looks like: <parameter name="Countries" class="java.util.Collections"/>
Is the syntax correct for several Countries like USA, Mexico, Germany:
http://<host>:<port>/jasperserver[-pro]/rest_v2/reports/reports/samples/Cascading_multi_select_report.html?Countries=USA&Countries=Germany&Countries=Mexico
Could this works, if I define the parameter as java.util.Collection und using it within my SQL Query: $X{IN, country,Countries}
Best Regards
Florian
Ok, and how should I define the parameter in the jasper studio?
As java.util.List or java.util.Collection?
My parameter looks like: <parameter name="Countries" class="java.util.Collections"/>
Is the syntax correct for several Countries like USA, Mexico, Germany:
http://<host>:<port>/jasperserver[-pro]/rest_v2/reports/reports/samples/Cascading_multi_select_report.html?Countries=USA&Countries=Germany&Countries=Mexico
Could this works, if I define the parameter as java.util.Collection und using it within my SQL Query: $X{IN, country,Countries}
Best Regards
Florian