Search in sources :

Example 6 with DataSet

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;
}
Also used : DataSet(io.jmix.reports.entity.DataSet)

Aggregations

DataSet (io.jmix.reports.entity.DataSet)6 Entity (io.jmix.core.Entity)2 FetchPlan (io.jmix.core.FetchPlan)2 EntityMap (io.jmix.reports.app.EntityMap)2 Orientation (io.jmix.reports.entity.Orientation)1 ArrayList (java.util.ArrayList)1 Collection (java.util.Collection)1 Map (java.util.Map)1 Nullable (javax.annotation.Nullable)1