b123786gmail.com Posted July 21, 2017 Share Posted July 21, 2017 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 TVCurrently 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 More sharing options...
Friendly User Posted July 24, 2017 Share Posted July 24, 2017 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now