Search in sources :

Example 1 with CalculatedAttributeVM

use of org.openforis.collect.designer.viewmodel.CalculatedAttributeVM in project collect by openforis.

the class CalculatedAttributeDefinitionFormValidator method validateFormulas.

private void validateFormulas(ValidationContext ctx) {
    CalculatedAttributeVM vm = (CalculatedAttributeVM) getVM(ctx);
    List<Formula> formulas = vm.getFormulas();
    validateRequired(ctx, FORMULAS_FIELD, formulas);
}
Also used : Formula(org.openforis.idm.metamodel.CalculatedAttributeDefinition.Formula) CalculatedAttributeVM(org.openforis.collect.designer.viewmodel.CalculatedAttributeVM)

Aggregations

CalculatedAttributeVM (org.openforis.collect.designer.viewmodel.CalculatedAttributeVM)1 Formula (org.openforis.idm.metamodel.CalculatedAttributeDefinition.Formula)1