j.t.casperson Posted February 13, 2016 Share Posted February 13, 2016 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 More sharing options...
Solution hozawa Posted February 13, 2016 Solution Share Posted February 13, 2016 Simply because that's the specs. It like when if you don't specify a WHERE clause in SQL statement, all rows are selected. Link to comment Share on other sites More sharing options...
kkriplani Posted February 13, 2016 Share Posted February 13, 2016 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 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