Running validation rules

You can run validation rules on start panel fields.

Procedure

To run validation rules on start panel fields, enter the name of the validation task profile in the set.xml file of the remote scan task client:

  1. Start Datacap Web Client, click the Administrator tab, click Workflow, and select the remote scan task for which you want to specify the task profile.
  2. In the Selected task details pane, click Setup.
  3. In the task.set.xml - Webpage Dialog window, scroll to the Rulerunner settings section.
  4. In the Main task profile field, enter a name of the validation task profile, such asValidateStartPanel. Datacap starts the ValidateStartPanel task profile when the user clicks Submit in the start panel.
  5. Scroll down and click Save.
  6. Implement validation rules in Datacap Studio.
    1. Create a task profile with an associated ruleset.
    2. Create a validation rule for each start panel field you want to validate.
    3. Bind each rule to the associated batch level field. For example, the following rule validates the operator name by using a database lookup command.
      • Validate Start Panel ruleset
        • Validate Operator rule
          • Validate Operator function
            • SetIsOverrideable("False")
            • Status_Preserve_OFF()
            • OpenConnection("@APPVAR(*/lookupdb:cs)")
            • ExcecuteSQL(""SELECT Operator FROM Operators WHERE Operator='%s';",Name")
            • CloseConnection()