Jump to content
Changes to the Jaspersoft community edition download ×

Passing Multiple Value to Jasper Server via REST_v2


florian.johannssen

Recommended Posts

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

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

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

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

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...