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

Multiple select values for parameter in Ireport 4.0.1


swathi.reddys2008

Recommended Posts

Hi...

 I am presenty working on Ireport 4.0.1 version. Here am trying to create a parameter which should take input multiple values. After searching on google i got this solution.

Main Query :  
SELECT * from customer where $X{IN,customer_id,param_customerID}

Parameter : 
Name : param_customerID
Class : java.lang.Integer

Parameter Query in the repository : 
Type : Multi Select Query
Query :
SELECT DISTINCT 
        customer_id FROM customer 
ORDER BY customer_id

 

    Here my question is where can I set Multe Select Query in Ireport 4.0.1. Please anyone help me. Its urjent.

Waiting for solution

 

Thanks in Advance

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

I had a similar case. The query I have specified in the same way as you have specified. But the Parameter i have specified in the following way.

Parameter Name=parameter1

Class=java.util.Collection

Default Value Expression=java.util.Arrays.asList($P{REPORT_PARAMETERS_MAP}.get( "parameter1" ))

 

 

 

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