Define validation rule in Aspen

Keep the following in mind when you are defining the rules in Aspen:

  • Rules are attached to tables in the Data Dictionary.
  • You can set up rules to be enforced when records are saved.
  • Do not create a custom validation expression for an address field here. Instead, define it in the General District Preferences.
  • If a rule is violated, the user is presented with a custom error message, such as the following:

To create a validation rule:

  1. Log on to the District view.
  2. Select Admin > Data Dictionary tab.
  3. Select the table you want to add a validation rule for, and click Details.
  4. Under Tables, click Validations.
  5. Select Options > Add. The New Data Validation Rule page appears.
  1. Use this table to enter information in the fields.
  2. Field

    Description

    Identifier

    Type an identifier for the rule. You can define your own identifiers or you can use state-defined identifiers.

    Error Message

    Type the error message to appear when a rule is violated.

    Example: Active students must have a homeroom.

    Disabled

    Select this checkbox to disable the validation rule.

    Note: You might want to create rules, keep them disabled, and then run them as needed. This keeps the rules from running constantly.

    Condition

    Type the condition to be met.

    Example{f:stdEnrStatus} = {Active}

    If a student is Active ...

    Expression

    Type the expression or result when the condition is met.

    Example: {f:stdHomeroom} !EMPTY {}

    Then the student's homeroom cannot be empty.

  1. Click Save.
  2. Verify your expression to ensure the syntax is correct and valid.