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

using queries in parameters


allstar

Recommended Posts

Hi, 

I'm using jasper studio 5.6.1, and successfully created a report with a String parameter.

But now i'm trying to modify this parameter from String to List and populate this list with the result of a query to the database.

Is it possible ?

 

 

Thanks

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Yes.  You will need to create the parameter with a data class-type of Collection.  The query itself will need the following syntax: $X{IN, arg1, arg2}.  Testing in Studio wlil require that you provide list yourself.  For the Server, you will need to create input controls that include a query to pull back values from the database.  

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