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.  View the rules for the Employee file. Notice it now has both Field and File Level rules.

2.  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 Compile button, the same option will be used again.

     Remember to check the correct compile options are used by using the Compile options dialog.

3.  Check that the file compile completed successfully.

4.  Execute your Employee Maintenance form iiiMaintEmployee

a.  Fetch an employee and try to update the details with a Department (such as XXX or blank) 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 validation rules that you created during the previous steps.

6.  Close the form.

7.  Close the file in the Editor.