How to cancel batch sending from the Scanning Station?

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:

  1. Open Scan Station.
  2. Create a new Batch Type (Tools > Batch Types > New...):
  3. In the Scripts tab, add a script (Add.. > Script Name and Event Name, Edit)

  4. Add the script, for On batch sending with the next code:

    if(condition)
    Workspace.Result.ErrorMessage="Check failed";
    Workspace.Result.Succeeded=false;
    }

Additional information

IScriptResult

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.

Recently viewed