Step 5. Recompile the File and Test Employee Rules
REP007 - File Validation Rules/Triggers
In this step you will recompile the Employee file so that the new rules will be applied.
1. Before submitting the compile, check that you do not have any forms active which are accessing the Employee file, otherwise you may encounter locking problems.
2. View the rules for the Employee file. Notice it now has both Field and File Level rules.
3. Recompile the iiiEmployees Employee file.
Note: Once again that the changes made to the Employee file concern file level validation rules. Therefore you need to recompile the OAM. The last compile action used this option. If you click on the button, the same option will be used again.
Remember to check the correct compile options are used by using the option.
4. Check that the file compile completed successfully.
5. Execute your Employee Maintenance form iiiMaintEmployee.
a. Fetch an employee and try to update the details with a Department (such as XXX) that does not exist.
b. Fetch an existing record and try to change the Salary to 10001.
If these entries weren't rejected, check the rules that you created during the previous steps.
6. Exit the application.
7. Close the file in the Editor.