Add a custom script to the Document_PreExtract and Document_Validate events - Brainware for Transcripts - 24.1 - 24.1 - Ready - Brainware - external - Brainware/Brainware-for-Transcripts/24.1/Brainware-for-Transcripts-User-Guide/About-the-Brainware-for-Transcripts-customization-options/Add-a-custom-script-to-the-Document_PreExtract-and-Document_Validate-events - 2024-10-28

Brainware for Transcripts User Guide

Platform
Brainware
Product
Brainware for Transcripts
Release
24.1
License

To insert a custom script into the Document_PreExtract and Document_Validate events, complete the following steps.

  1. Open Intelligent Capture Designer.
  2. In Definition mode, in the Class view, highlight CustomBaseClass, then right click and select Show script.
  3. Copy the following script into the script window.
    Private Sub Document_PreExtract(pWorkdoc As SCBCdrPROJLib.SCBCdrWorkdoc)
      If InStr(UCase(ScriptModule.ModuleName), cVerifier) Then
        gblVerifierAsServer = True
      Else
        gblVerifierAsServer = False
      End If
      fnGetClassResultsMatrix(pWorkdoc)
      fnReporting(pWorkdoc, "DOCUMENTPREEXTRACT")
    End Sub
    Private Sub Document_Validate(pWorkdoc As SCBCdrPROJLib.SCBCdrWorkdoc, pValid As Boolean)
      gblVerifierAsServer = False
      If UCase(ScriptModule.ModuleName) <> cVerifier Then
        fnReporting(pWorkdoc, "DOCUMENTVALIDATESERVER")
      Else
        fnReporting(pWorkdoc, "DOCUMENTVALIDATEVERIFIER")
      End If
    End Sub