Using Database Validation
Procedural Overview
This section describes the basic procedure to follow for using the Database Validation feature. The following assumes that the batch and document classes are already defined. It also assumes that the Validation module is in the batch class module.
- Select a document class.
- Open the Database Validation window.
- Complete the setup windows.
- If necessary, adjust the order of the validations.
- Publish and process the batch.
Adding a Database Validation
Before you can take advantage of the Database Validation feature, you must add a validation and set parameters.
- Select the appropriate document class in one of the tree views.
- Right-click the selected document class to open a context menu.
-
Select
Database Validation.
The Database Validation window appears.
- Click Add to view the Database Validation Properties window - Database tab.
-
In the
Name field, provide a name for this database
validation.
Try to use a name that is meaningful to you or your operators.
- On the Database type list, select the type of database to use when looking up the data. Depending on your selection, the lower portion of the screen may vary slightly.
- In the next field, for an Access database, provide the name of the Access database file. For an ODBC level 3 compliant data source, provide the name of the data source. For a SharePoint list, provide a URL.
- Provide the workgroup file name (Access only).
- Provide a user name and the password, if required.
- Click the Table Settings tab to display the table options.
-
On the
Index field to validate
list, select the index field to use as the basis for a match. -
On the
Validate against table
orValidate against list
list, select the item that contains the necessary data. -
On the
Match column
list, select the item that contains the data that serves as the basis for a match. The contents of this column are compared to the index field you selected earlier. - Select Auto-fill index fields from results to link index fields to database fields.
- Match the index fields you want to have automatically filled to the corresponding database columns. If you leave a match blank, auto-fill does not occur for that index field.
- Click the Options tab and set the options.
- Click the Workstation tab and set up the caching options.
- Click the KCN Server tab and set up the type of database connection and cache to use. Depending on the database type, the settings on this tab may be unavailable.
- Click OK to close the window and add your database validation to the list in the Database Validation window.
Removing a Database Validation
- Select the appropriate document class in one of the tree views.
- Right-click the selected document class to open a context menu.
-
Select
Database Validation.
The Database Validation window appears.
- Select the database validation to remove.
- Click Remove to delete it from the list.
Editing a Database Validation
- Select the appropriate document class in one of the tree views.
- Right-click the selected document class to open a context menu.
-
Select
Database Validation.
The Database Validation window appears.
- Select the database validation to edit.
- Click Properties to open the Database Validation Properties window.
- Make any necessary changes.
- Click OK to close the window and save your edits.
Moving a Database Validation in the List
- Select the appropriate document class in one of the tree views.
- Right-click the selected document class to open a context menu.
-
Select
Database Validation.
The Database Validation window appears.
- Select the database validation to move.
- Drag it up or down in the list.