Search in sources :

Example 1 with EntityListParameterValue

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);
    }
}
Also used : EntityListParameterValue(io.jmix.dashboards.model.parameter.type.EntityListParameterValue) EntityParameterValue(io.jmix.dashboards.model.parameter.type.EntityParameterValue) KeyValueEntity(io.jmix.core.entity.KeyValueEntity)

Aggregations

KeyValueEntity (io.jmix.core.entity.KeyValueEntity)1 EntityListParameterValue (io.jmix.dashboards.model.parameter.type.EntityListParameterValue)1 EntityParameterValue (io.jmix.dashboards.model.parameter.type.EntityParameterValue)1