Creating an IDO Property Validator

Note:  This topic applies to the creation of validators to use in conjunction with IDO properties and property classes.

Validators are global objects that can be used to validate input or other actions taken by a user.

To create and assign a validator as part of an IDO property or property class:

  1. On the IDO Properties form or the Property Classes form, click the ellipses button (...) to the right of the Validators field.
  2. On the main page of the form, click Add.
  3. On the Select Validator Type page, select the type of validator you want to add.
  4. Click Next.

    The page you proceed to depends on the type you selected.

  5. If you selected In Inline List, follow these steps:
    1. Click Add.
    2. In the Property Name field, specify the property you want to set a value for if the validation is successful.
    3. In the Inline List Column field, specify the index of the column that is to contain the value of the component bound to the property.
    4. Optionally, in the Error Message field, specify an application error message to display if validation is not successful.
    5. Click OK and go on to Step 8.
  6. If you selected In IDO Collection, follow these steps:
    1. In the IDO Name field, specify the IDO to use for validation.
    2. In the Property Name field, specify a property that you want to validate from the IDO collection named in the IDO Name field.
    3. Optionally, in the Filter field, specify the IDO filter you want to use during validation.
    4. Click Add.
    5. In the Target Property field, specify the property to be updated from the IDO collection that is being saved and validated.
    6. In the Source Property field, specify the property from the IDO being used for validation that contains data to be copied into the target property.
    7. Optionally, in the Error Message field, specify an application error message to display if validation is not successful.
    8. Click OK and go on to Step 8.
  7. If you selected IDO Method, follow these steps:
    1. In the IDO Name field, specify the IDO that contains the method you want to validate.
    2. In the Method Name field, specify the method to be evaluated by this validator.
    3. Optionally, click Add. Then:
      • In the Type field, specify whether the designated parameter is to be used for input only, both input and output, or a message.
      • In the Source field, specify whether the parameter is to treat the value as a property value or treat it as a literal value.
      • In the Value field, specify the value for the parameter that is to be passed to the method.
    4. Optionally, in the Error Message field, specify an application error message to display if validation is not successful.
    5. Click OK and go on to Step 8.
  8. If you are finished adding validators, to return the entire validator specification to the Validators field, click OK.