Friday 23 January 2015

Default Value Expression for Collection Type parameter in Jasper Studio 6.x

Below expression set the default values for a Collection type parameter

For Eg : Lets create a parameter called paramMyStrings which is a Collection type.

$X{IN,<fieldName>,<paramName>} is the parameter and its type is : java.util.Collection

Default value expression for this parameter could be as follows

new ArrayList(Arrays.asList(new String[] {"String1","String2","String3","String4"}))


:-)

No comments:

Post a Comment