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:
- On the IDO Properties form or the Property Classes form, click the ellipses button (...) to the right of the Validators field.
- On the main page of the form, click Add.
- On the Select Validator Type page, select the type of validator you want to add.
-
Click
Next.
The page you proceed to depends on the type you selected.
-
If you selected
In Inline List, follow these steps:
- Click Add.
- In the Property Name field, specify the property you want to set a value for if the validation is successful.
- 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.
- Optionally, in the Error Message field, specify an application error message to display if validation is not successful.
- Click OK and go on to Step 8.
-
If you selected
In IDO Collection, follow these steps:
- In the IDO Name field, specify the IDO to use for validation.
- In the Property Name field, specify a property that you want to validate from the IDO collection named in the IDO Name field.
- Optionally, in the Filter field, specify the IDO filter you want to use during validation.
- Click Add.
- In the Target Property field, specify the property to be updated from the IDO collection that is being saved and validated.
- 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.
- Optionally, in the Error Message field, specify an application error message to display if validation is not successful.
- Click OK and go on to Step 8.
-
If you selected
IDO Method, follow these steps:
- In the IDO Name field, specify the IDO that contains the method you want to validate.
- In the Method Name field, specify the method to be evaluated by this validator.
-
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.
- Optionally, in the Error Message field, specify an application error message to display if validation is not successful.
- Click OK and go on to Step 8.
- If you are finished adding validators, to return the entire validator specification to the Validators field, click OK.
Related topics
- Understanding Properties
- About validators
- In Inline List validators
- In Collection validators
- Method Call validators