/
Kofax - Batch Field Validation

Kofax - Batch Field Validation

Applies to

Kofax Capture 10.x and 11.0

Summary

Is there a way that a Batch Field can be validated?

Answer/Solution

Yes. There are a couple of methods that can be used.

If validation must be performed at Batch-creation time, a Custom Panel must be implemented to check the Batch Field value and prevent the creation of the Batch until the Field criteria is met.

Probably a better method is to implement a VB.NET Validation script. First, a Document Index Field would have its default value set to the Batch Field to be changed. In the Validation script, the PostFieldEvent of the Field linked to the Batch Field checks the value and changes the Batch Field value if required.

Private Sub Name0_FieldPostProcessing(sender As Object, e As Kofax.AscentCapture.Scripting.PostFieldEventArgs) Handles Name0.FieldPostProcessing

    If Name0.IndexField.Value <> "ABCDE" Then

        Throw New ValidationErrorException("Incorrect Value")

    Else

        Name0.IndexField.Batch.BatchFields("TestField").Value = Name0.IndexField.Value

    End If

End Sub

Related content

Kofax - Scripting - Validation - Save and Skip a Document in a Field PostProcessing Event
Kofax - Scripting - Validation - Save and Skip a Document in a Field PostProcessing Event
More like this
Kofax - Make an Index Field read-only in Validation
Kofax - Make an Index Field read-only in Validation
More like this
Kofax - Error "required batch field is not set"
Kofax - Error "required batch field is not set"
More like this
Kofax - Script Driven option in the Capture Database Validation settings
Kofax - Script Driven option in the Capture Database Validation settings
More like this
Kofax - Make an Index field read-only in Validation module using a SBL Field Macro
Kofax - Make an Index field read-only in Validation module using a SBL Field Macro
More like this
Kofax - Long Value storage for Index and Batch Fields
Kofax - Long Value storage for Index and Batch Fields
More like this

Copyright © CASO Document Management

All product names, logos, brands, and trademarks featured or referred to on this page are the property of their respective trademark holders. These trademark holders are not affiliated with, nor do they sponsor or endorse this website or the products/services offered unless explicitly stated otherwise.