Administer > Application setup > Process Designer > Adding a rule > Add a Validate against Table rule

Add a Validate against Table rule

Applies to User Roles:

System Administrator

Implementer

This rule enables you to validate a field against a field in another table and fill data into other fields. You can also filter the data you are validating against, and fill data into other fields.

Note The Validate against Table rule does not include the Set Mandatory Fields rule, so that you cannot use the Validate against Table rule to verify whether a field is empty or not. Before you create a Validate against Table rule, it is recommended that you first add a Set Mandatory Fields rule to verify whether the field is empty or not.

To add a Validate against Table rule, follow these steps:

  1. In the System Navigator, click Tailoring > Process Designer > Rule Sets.
  2. Click Search to open the Rule Set form, and then select the rule set to which you want to add the rule.

    Note You can edit user-defined rule sets only. Out-of-box rule sets are labeled as Micro Focus Proprietary and cannot be modified.

  3. Click Add Rule to open the Select Rule Type page, and then click Validate against Table.
  4. In the Rule Description field, type a description of your new rule.
  5. Click Edit to add a condition.

    Note If you do not specify a condition, it will default to Always.

  6. Select Pop-up or Screen to set the type of error message that is displayed during validation.
  7. Select the field to validate from the drop-down list.
  8. Select the name of the table you want to validate against.
  9. Select the name of the field you want to validate against.
  10. You can filter the data that you are validating against by using a standard RAD query.

    For example, the following field entries will validate only for cm3r with the current field name ("Demo String2," in this example) of the workflow:

    Current Field Name field: Demo String2

    Validate Against Table field: ModuleStatus

    Validate Against Field field: Status

    Filter field: module="cm3r"

  11. Click Click Here to Add Fill Information to enter Fill From and Fill To fields.

    Note The Fill From field represents the fields of the validation table against which it validates. The Fill To field represents the fields in the current table being validated.

  12. (Optional) If you want the field to be validated whether its value changes or not, select the Always Check Validity check box.

    If this option is not selected, the system validates the field only when its value changes.

  13. Click OK to add the new rule to the rule set.

Related topics

Process Designer
Create a rule set