Question
I would like to perform a data check and prohibit batch sending according to some conditions. How to do that?
Answer
You can use a Workspace.Result object of IScriptResult type:
- Open Scan Station.
- Create a new Batch Type (Tools > Batch Types > New...):
- In the Scripts tab, add a script (Add.. > Script Name and Event Name, Edit)
-
Add the script, for On batch sending with the next code:
if(condition)
Workspace.Result.ErrorMessage="Check failed";
Workspace.Result.Succeeded=false;
}
Comments
0 comments
Please sign in to leave a comment.