REP003 - Validation Rules
Validation rules are enforced by business rules defined in the Repository. Rules which are defined in the field definition become global rules, meaning that they will be enforced in any file where the field is used. Most rules are defined in the file definition in which case they are enforced only in the context of that file. You will learn more about this feature in the exercise REP007 - File Validation Rules/Triggers.
Objectives
- To show field level validation rules in the repository.
- To show how rules are adopted from reference fields.
- To add the following business rules to the repository:
iiiSurname |
Cannot be blank (copied from reference field) |
iiiSalary |
Must be greater than 0 |
To achieve these objectives you will complete the following:
Step 1. Review Existing Rule for iiiDeptCode Field
Step 2. Adopt Rule from Reference Field
Step 3. Create a Rule for the iiiSalary Field
Before you Begin
In order to complete this tutorial, you must have completed the previous tutorials.