riodavid Posted March 7, 2018 Share Posted March 7, 2018 Hi Folks,I have a Jasper report on server, it has an Multi-Select Checkbox input control, which would be like:[] Dog[] Cat[] Fish I want Dog and Cat selected by default like this:[v] Dog[v] Cat[] Fish I know this can be done in Jaspersoft Studio, by setting its "Default Value Expression" to hard coded values:java.util.Arrays.asList( "Dog", "Cat") But is it possible to set the default values dynamically? For example, from a query?SELECT ANIMAL FROM ZOO WHERE TYPE = 'LAND' Thank you very much.Dawei Link to comment Share on other sites More sharing options...
Solution mlopez_1 Posted March 7, 2018 Solution Share Posted March 7, 2018 Only if you make a scriptlet that returns a List after making the query.Mariano 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