How to validate user input

Certain validation rules can be specified when you define attributes of an object. For example, you can specify that the attribute may take only certain values (Choice list) or that the attribute value may only be within the given range (Value Range). See the “Common Properties” for details on how to do this.

If you want more complex validation of the attribute values then you can attach a rule to the object that checks the value of the attribute. Use REPORT ERROR action to indicate the error action. When this action is executed Aware IM will abort any changes done to the object and display the specified error message to the user suggesting to re-enter the invalid value. For example:

IF Client.Spouse IS DEFINED AND Client.MaritalStatus='Single' THEN 
   REPORT ERROR 'Marital status cannot be single when spouse is defined' 
  • Last modified: 2023/05/08 06:22