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:
- 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.
- In the Selected task details pane,
click Setup.
- In the task.set.xml - Webpage
Dialog window, scroll to the Rulerunner settings section.
- 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.
- Scroll down and click Save.
- Implement validation rules in Datacap Studio.
- Create a task profile with an associated ruleset.
- Create a validation rule for each start panel field
you want to validate.
- 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()