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

Multi select for 4.7 seems broken


brooneyx1

Recommended Posts

Multi select for 4.7 seems broken, I have a multi select input selector that works fine in 4.2.1 but when I try the same in 4.7, it is not working. It is a integer collection that gets returned, but in 4.7 it is just returning the first item regardless of what I have choosen. Any one else having this issue ? Any workaround or fix on the way ?

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

This has been fixed in JRS 4.7.1, here's a workaround for 4.7 (quoting someone internal)

...

The difference between 4.5.1 and 4.7.0 comes from the input control changes. The case is of a report having a java.util.Collection parameter with nonestedType specified.In that case the 4.5.1 input controls code assumed String as the nested type,and sent a list of Strings to JR as parameter value. MySQL is fine withcomparing integer values to Strings, so the query worked as expected.In the same case the 4.7.0 code sends an empty list as JR parameter value (evenwhen values are selected). Therefore the $X{IN, ..} clause does not apply anyfiltering the report shows all the data.Setting nestedType="java.lang.Integer" for the parameter in the JRXML fixes theproblem in 4.7.0.

Link to comment
Share on other sites

  • 2 years later...

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