Passing the List of primitive type objects as datasource for subreport

You have to specify what field you’re using in your sub report. You are passing $F{} and as you are passing a List<String> as a DataSource you should put $F{_THIS}. Of course you have to add a field with that name too, only doing that you can use the expression $F{somefield}.

Leave a Comment