florian.johannssen Posted March 11, 2015 Share Posted March 11, 2015 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=TextI use this for a singleValueDate: host/reports/Reports/Report.pdf?START_DATE=2015-03-02&END_DATE=2018-03-18But how is the syntax for multiple values?Best RegardsFlorian Link to comment Share on other sites More sharing options...
nthapa Posted March 11, 2015 Share Posted March 11, 2015 Look into JRS-web-services-guide.pdfFollowing is the example from the pdfhttp://<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 Link to comment Share on other sites More sharing options...
florian.johannssen Posted March 12, 2015 Author Share Posted March 12, 2015 Ok, and how should I define the parameter in the jasper studio? As java.util.List or java.util.Collection? My parameter looks like: Is the syntax correct for several Countries like USA, Mexico, Germany: http://:/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 Link to comment Share on other sites More sharing options...
florian.johannssen Posted March 16, 2015 Author Share Posted March 16, 2015 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=MexicoCould this works, if I define the parameter as java.util.Collection und using it within my SQL Query: $X{IN, country,Countries}Best RegardsFlorian Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now