Hi Isomorphic,
the docs list a Validator property dependentFields:
Can you give an example what this used for? I already do have $record in a Velocity Validator and Map record a DMI Validator. Also, what is "applyWhen"? It is not linked.
My usecase is that I have a Table Check Constraint in the DB in the form of
2nd question:
If I do it with velocity, I'll have to copy the same code to all three fields, correct?
If I do it with Java DMI Validation, I have to list the class in all three fields, correct?
Or is there also a way to have a validator per record and not per field (I'm pretty sure it is not, but just to be sure).
Thank you & Best regards
Blama
the docs list a Validator property dependentFields:
User-defined list of fields on which this validator depends. Primarily used for validators of type "custom" but can also be used to supplement applyWhen criteria.
My usecase is that I have a Table Check Constraint in the DB in the form of
Code:
(fieldA IS NULL AND fieldB IS NULL AND fieldC IS NOT NULL) OR (fieldA IS NULL AND fieldB IS NOT NULL AND fieldC IS NULL) OR (fieldA IS NOT NULL AND fieldB IS NULL AND fieldC IS NULL)
If I do it with velocity, I'll have to copy the same code to all three fields, correct?
If I do it with Java DMI Validation, I have to list the class in all three fields, correct?
Or is there also a way to have a validator per record and not per field (I'm pretty sure it is not, but just to be sure).
Thank you & Best regards
Blama
Comment