use of org.openforis.idm.metamodel.CalculatedAttributeDefinition.Formula 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);
}
use of org.openforis.idm.metamodel.CalculatedAttributeDefinition.Formula in project collect by openforis.
the class CalculatedAttributeVM method addFormula.
@Command
@NotifyChange("formulas")
public void addFormula() {
editingNewFormula = true;
editedFormula = new Formula();
openFormulaEditPopUp();
}
Aggregations