brooneyx1 Posted October 4, 2012 Share Posted October 4, 2012 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 More sharing options...
lisacbeaton Posted October 4, 2012 Share Posted October 4, 2012 My multi-select input controls are working in 4.7. Are you finding this for all of your reports or just this one? Link to comment Share on other sites More sharing options...
ernestoo Posted October 5, 2012 Share Posted October 5, 2012 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 More sharing options...
ajinkya_c Posted October 10, 2012 Share Posted October 10, 2012 I used multi-select operater with $X{IN,database_field,Parameter} with java.lang.collector as datatype , input control that I used is Multi-select query check input controls. and it works fine with that prompts as Optional also. Link to comment Share on other sites More sharing options...
sfriedman Posted November 11, 2014 Share Posted November 11, 2014 Ernestoo's solution works for me in v5.6.1. Thanks 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