Jump to content

Why does Jasper display everything from a multi-select when nothing is selected?


j.t.casperson
Go to solution Solved by hozawa,

Recommended Posts

It's very odd, and a little frustrating that say I have a multiselect sql statement that says $X{IN, buildings_field, buildings_parameter}, if I don't select any buildings in the multiselect it will display all buildings as if I had selected all of them. Does anyone know why Jasper does this, and how to fix it? 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Rightly said by hozawa.

But i feel there is a workaround for this.

Declare a default value say '0' in the default expression. Make sure '0' does not exist for that column in the database. Hence everytime you don't select anything, default value for that parameter would go as 0 and the result would be empty as 0 is not in that column.

 

Hope this helps,

KKriplani.

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