Step 1 Review Existing Rule for iiiDeptCode Field

Visual LANSA

Step 1. Review Existing Rule for iiiDeptCode Field

REP003 - Validation Rules

In this step you will review the validation rule defined on the iiiDeptCode field that you created in exercise REP001 - Create Fields. When you created the iiiDeptCode field, you copied the validation rules from the DEPTMENT field.

1.  Open the iiiDeptCode field in the Editor.

2.  Select the Rules and Triggers tab.

     All validation rules defined on the field are displayed.  Note:  If the rule does not appear, then you did not copy it when you created the field. To correct this problem, delete the iiiDeptCode field and recreate it as described in Step 2. Copy Fields in REP001 - Create Fields.

3.  Select and expand the existing rule Department cannot be blank by clicking the plus (+) to display the Details tab. This rule is a simple logic rule that ensures that the field is not blank.

     There are different types of validation rule which each have their own set of parameters. A simple logic rule allows a simple expression to be evaluated when the value of a field has been received.

4.  Review the Details to see the actions defined for this rule.

     5.  Do NOT close the field.