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

Input Control - Multi-Select Checkbox Default Values


riodavid
Go to solution Solved by mlopez_1,

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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