use of io.jmix.dashboards.model.parameter.type.EntityListParameterValue in project jmix by jmix-framework.
the class EntityListValueFragment method initDc.
protected void initDc(Map<String, Object> params) {
EntityListParameterValue value = (EntityListParameterValue) params.get(VALUE);
if (value == null || value.getEntityValues() == null) {
value = new EntityListParameterValue();
}
for (EntityParameterValue entityValue : value.getEntityValues()) {
KeyValueEntity keyValueEntity = createKeyValueEntity(entityValue);
entitiesDc.getMutableItems().add(keyValueEntity);
tableValues.put(keyValueEntity, entityValue);
}
}
Aggregations