About Brainware Field Extraction Candidates in a Script - About Brainware Field Extraction Candidates in a Script - The following script sample shows how to replace the extracted BFE candidates with the ones extracted by the Format Analysis engine or how to keep both kinds of candidates in the candidates array. - Brainware - Designer - Brainware/Designer/Foundation-23.1/Brainware-Intelligent-Capture-Designer/Evaluation/Brainware-Field-Extraction-Engine-for-Generic-Field-Extraction/About-Brainware-Field-Extraction-Candidates-in-a-Script - Foundation 23.1 - Foundation 23.1

Brainware Intelligent Capture Designer

Platform
Brainware
Product
Designer
Release
Foundation 23.1
License
ft:lastPublication
2024-01-22T17:59:53.053000
ft:locale
en-US

The following script sample shows how to replace the extracted BFE candidates with the ones extracted by the Format Analysis engine or how to keep both kinds of candidates in the candidates array.

Example: BFE candidates in a script

Private Sub Date_PostEvaluate(pField As SCBCdrPROJLib.SCBCdrField, pWorkdoc As SCBCdrPROJLib.SCBCdrWorkdoc)  
   Dim i As Long
   For i = pWorkdoc.Fields.ItemByName("Date").CandidateCount - 1 To 0 Step -1
 ' Comment the code line below if you'd like to keep both types of candidates (from FAE and BFE)
      pWorkdoc.Fields.ItemByName("Date").RemoveCandidate(i)
   Next i
   pWorkdoc.DocState = CDRDocStateClassified
   pWorkdoc.Fields.ItemByName("Date").FieldState = CDRFieldStateReset
   Project.AllClasses.ItemByName("Invoices").AnalyzeField pWorkdoc, "Date"
End Sub