Manage validation errors
Validation actions set the Status variable of the object if there is an error. The Status variable determines which pages Datacap displays to the operator. However, you might need to complete extra error handling within the application.
The following rule has two functions and each function has two actions. Suppose that Function1 contains validation actions and Function2 is there to handle validation errors.
Rule: Validation rule
Function1: Perform validation
Action1
Action2
Function2: Handle validation errors
Action3
Action4
Using the rules for execution of functions and actions within a rule:
- If Action1 returns False, Datacap skips Action2 and runs Function2.
- If Action1 returns True and Action2 returns False, Datacap runs Function2.
- If Action1 and Action2 both return True, Datacap does not run Function2.