T
Thierry Ciot
Guest
You have several solutions depending on your rules: 1) You can configure object fields with various constraints, for example income field can be constrained to a min and max value. Here is how it renders in the ui: The advantage is that you have client side validation. That is user receives immediate feedback when entering data on the field. 2) When the constraints is more complex or require evaluating multiple fields, you can use validation link on the field definition. This will let you write your custom rule. The difference is that this rule is evaluated on the server side so user will only be notified when clicking save. For example, here is the same rule written with server side validation: if ( {!CurrencyField#value} > 10000 || {!CurrencyField#value} < 5000 ) return "Currency field needs a value between 5000 and 10000"; Which will result in this message in UI: See http://documentation.progress.com/output/rb/doc/#page/rb%2Ffield-validation.html for details 3) You can write custom javascript to execute client side that would implement all your rules. Thierry.
Continue reading...
Continue reading...