IBM Datacap, Version 8.1            

Example 2: Validation rules

Validation rules are used to confirm that a field value conforms to a supported format.

The Profiler and Verify task profiles both include the Validate ruleset. In this example, the Validate ruleset includes a rule that is called Validate Date, which returns True if a field value conforms to one of the supported date formats.

The Task Profiles tab shows the validate ruleset, and the rulesets tab shows the validate ruleset and the validate date rule

If you select the Validate Date rule and click Sync DCO View with Ruleset View, Datacap Studio expands the document hierarchy to show you which objects are associated with the rule.

Document hierarchy shows the objects that are associated with the rule.

In this example, the Validate Date rule is associated with the Arrival_Date field and Departure_Date field on pages of type Room_Receipt. This rule runs whenever Taskmaster processes an Arrival_Date field or Departure_Date field on a page of type Room_Receipt while it runs the Rulerunner or Verify task profile.



Feedback

Last updated: November 2013
dcadg230.htm

© Copyright IBM Corporation 2013.