You are not logged in.
Pages: 1
Hi All. I am trying to include in the model validations to compare values from various fields, for example I need field A to be always larger than field B. For this I am implementing a new class inheriting from TSynValidateRest, and eventually using it in the AddFilterOrValidate method. I have defined the parameters to be of the format: FIELD:OPERATOR. For example:
AddFilterOrValidate('FieldA', TSynValidateNumber.Create('{FieldB:GT}'));
That would mean that the value of FieldA must be greater than that of FieldB.
Is that a valid path, or should I use another solution? What do you recommend?
Greetings
Sergio
Offline
Pages: 1