use of io.jmix.reports.entity.DataSet in project jmix by jmix-framework.
the class DataSetFactory method createEmptyDataSet.
/**
* Methods create {@link DataSet} instance with basic filled
* @param dataBand with some filled attributes
* @return new instance of {@link DataSet}
*/
public DataSet createEmptyDataSet(BandDefinition dataBand) {
checkNotNull(dataBand);
DataSet dataSet = metadata.create(DataSet.class);
dataSet.setBandDefinition(dataBand);
dataSet.setType(DataSetType.GROOVY);
dataSet.setText("return [[:]]");
return dataSet;
}
Aggregations