xavier.bonislawski Posted September 27, 2017 Share Posted September 27, 2017 Hello,I got a query-based input control in my report, the first choice is selected by default (default value)Is it possible to deselect this line so there is no default value for this input control.On the contrary is it possible to have all the choices (all the lines) selected by default.Regards Link to comment Share on other sites More sharing options...
reportdev Posted October 6, 2017 Share Posted October 6, 2017 The default Value Expression on the Parameters initiates the parameter with a default value. so initiating a default value with nothing should resolve this issue.For example in the below snippet code, my parameter is an arraylist and I'm initiating it with new ArrayList(Arrays.asList()), which is a blank arraylist. <parameter name="paramTest" class="java.util.ArrayList"> <defaultValueExpression><![CDATA[new ArrayList(Arrays.asList())]]></defaultValueExpression> </parameter> Link to comment Share on other sites More sharing options...
xavier.bonislawski Posted October 7, 2017 Author Share Posted October 7, 2017 Thank you,unfortunately it doesn't work.The query returns some rows so the input control is filled by these rows.And the first of them is selected by default.available : 8 selected : 1 (900 in this case) and I whish to have none selected by default. Thank you for your help. 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