Jaspersoft BI Tools

iReport,Jaspersoft Design Studio,Jaspersoft Server, Schema Workbench,Analysis,Dashboards, Self Service BI, Domains,Topics,Ad-Hoc Reports, Jaspersoft ETL, Embedding BI,HTML-5 charts, Fusion Charts,JFree Charts,Drill down reports , Drill down Dashboards,Visualize.js, Performance Tuning, D3 Charts, Jaspersoft Customization

Friday, January 23, 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"}))


:-)