Jump to content
Changes to the Jaspersoft community edition download ×

Multi Select List of Values Checkbox


b123786gmail.com

Recommended Posts

I want to have an AND functionality instead of OR Functionality for Multi Select List of Values CheckBOX.

Imagine i am trying to book an hotel. I want all the rooms which have AC and TV

Currently in Jaspersoft when i select AC it shows me all the rooms which have AC, then if i select TV then it shows me all the rooms that have TV and AC. BUT it also shows me all the rooms which have JUST AC or JUST have TV. How can i just see rooms that have BOTH AC and TV and filter out the rest ?

Thanks 

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The multiselect input control is passing the value into the report as a collection. That collection is then used in an $X{IN} statement in the query as I would imagine. The IN statement in SQL translates in exactly what you see in your situation. It shows all the records that contain any of the items from the array. What you would need is probably a different $X{} operation or different query all together but that would depend on how your data is stored in 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...