Class GroovyDataLoader
java.lang.Object
io.jmix.reports.yarg.loaders.impl.GroovyDataLoader
- All Implemented Interfaces:
ReportDataLoader
Loads data using groovy script
Script should return list of maps
Example:
return [['a':123, 'b':321], ['a':456, 'b':params['param1']]]
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
GroovyDataLoader
-
-
Method Details
-
loadData
public List<Map<String,Object>> loadData(ReportQuery reportQuery, BandData parentBand, Map<String, Object> params) Description copied from interface:ReportDataLoader
This method MUST return list of mutable maps. We need mutability to put there some values implicitly.- Specified by:
loadData
in interfaceReportDataLoader
-