Constraints

Constraints errors don't appear in the form

Hi everybody,

I created a contract which has one constraint, when the expression it's true the form is submitted as expected. However, when it's false the error is not shown in the form, it only appears in the log file.

Any idea of what could be happening?

Thanks,
Clara

Access DAO object in Constraint script

Hello All,

It seems it's not possible to access DAO objects in a Constraint validation script. For instance, when I try to validate using objectDAO.findByCode(input.myCode, 0, 1), I get the following error:

objectDAO is neither defined in the script nor in dependencies.

Is it so or am I doing something wrong? And if so, what alternative is feasible to validate input data against BDM (database) values?

Thank you in advance.

Notifications