GeneratePoolFromCsvFile
This method removes the previous pool and generates a new one using CSV file designed in the new format.
Syntax
GeneratePoolFromCsvFile ()
Sample Code
Sub GeneratePoolData (pworkdoc As SCBCdrPROJLib.SCBCdrWorkdoc)
; Get a handle for the field and settings
Dim oCustomerASSA As SCBCdrField
Dim FieldAnalysissettings As ISCBCdrAnalysisSettings
Dim PoolAnalysisSettings As SCBCdrSupExSettings
Dim SupplierExtractionEngine As New SCBCdrSupplierExtractionEngine
Set oCustomerASSA = pworkdoc.Fields("VendorName")
Project.AllClasses("Invoices").GetFieldAnalysisSettings(oCustomerASSA.Name, "German", FieldAnalysissettings)
Set PoolAnalysisSettings = Project.AllClasses("Invoices").Fields(oCustomerASSA.Name).AnalysisSetting("German")
; Using PoolAnalysisSettings you can alter the attributes for the pool, such as ImportFileName.
PoolAnalysisSettings.GeneratePoolFromCSVFile
; Perform the search
SupplierExtractionEngine.SearchField("BOLZ Company, Gutman Company, Inc, Worldnet", pworkdoc, FieldAnalysissettings, oCustomerASSA.Name)
; Check if there is at least 1 result
If oCustomerASSA.CandidateCount > 0 Then
; do something
End If
End Sub