Jump to content

Default value expression for Collection


usha.vellala

Recommended Posts

Hi All, 

 

I created a parameter whose type is "Collection" and it is a multi select parameter. I want to choose one value as default but I am unable to do so. I have tried all the options mentioned in this forum like

the default values as " new ArrayList(Arrays.asList(new String[] {"WhatValueUWant"})) "and  " [" "] "  but still didn't work. Can any one please help me here ? 

 

Thanks,

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hello, I use apache Commons Lang 3 library. Put it into Preference -> Java -> User Libraries in Jaspersoft Studio and then parameter's property 'Default Value Expression':

Arrays.asList("VALUE1","VALUE2", ....)

And parameter's property 'class' : java.util.List

 

Regards

Link to comment
Share on other sites

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