Step 2 Adopt Rule from Reference Field

Visual LANSA

Step 2. Adopt Rule from Reference Field

REP003 - Validation Rules

In this step you will add a rule to the iiiSurname field by adding the rule from its III_NAME reference field.

1.  Open the iiiSurname field in the Editor.

2.  Select the Rules and Triggers tab. 

3.  Click the Add button on the Home ribbon to open the Add menu and select the Adopt from Reference Field option.

     The Adopt rules and triggers dialog displays the rules that iiiSurname can adopt from the III_NAME field. In this case there is only one.

4.  Select the Must not be Blank rule and press the Adopt button.

     Note: If you press the Adopt button again, the rule will be adopted again.

5.  Press the Close button.

6.  Expand the Validation Rules on the Rules and Triggers tab to display the details.

     This is a List of Values rule. Notice that this is a similar rule as the Simple Logic Check rule specified for the Department field but expressed in a different way.

7.  Display the Details tab. Compare the Rule Definition and the Actions with iiiDeptCode.

8.  Save and close the iiiSurname field.

9.  Close the iiiDeptCode field.