Jump to content
We've recently updated our Privacy Statement, available here ×

Passing parameter in previews as collection


maiolif

Recommended Posts

Hello, sorry for my "stupid" question.

In a report I put a clause

WHERE $X{ IN ,res_partner.id,IDS}[/code]

The report is working well.

when in preview, in jaspersoft Studio, I need to pass the parameter collection IDS to the report, but I always get this error

net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRRuntimeException: Invalid type java.lang.String for parameter IDS used in an IN clause; the value must be an array or a collection.

I tried several ways to pass the list of IDS, but without success:

[1,2]

1,2

"1,2"

"[1,2]"

"{1,2}"

and many other...

 

Help!

Link to comment
Share on other sites

  • 5 years later...

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...