Kofax Getting Started with Ascent Xtrata Pro User Manual

Page 251

Advertising
background image

Chapter 5

232

Ascent Xtrata Pro User's Guide

toolbar. Invalid fields are marked with a blue question mark ( ) and valid
fields with a green check mark ( ).

7

Select Process | Validate Document from the main menu or click Validate
Document from the main toolbar or use the short cut F8.

8

The validation form for the processed document is displayed showing the
extracted values. Edit the form as needed.

Validation Script Events

The following script events are available:

• AfterComboboxItemSelected
• AfterFieldConfirmed
• AfterTableCellConfirmed
• BeforeComboBoxDropDown
• BeforeFieldGetFocus
• BeforeTableCellGetFocus
• ButtonClicked
• DocumentLoaded

Note

To compare the DoubleValue property of two fields, you cannot use an equal

sign (=). Use abs (field1.doublevalue – field2.doublevalue) < 0.02.

X

To set up a script event

1

Open the Validation Design validation form designer. (Right-click a
document class to open its context menu and click Validation Form, or open
an existing validation form.)

2

Insert a field or control that requires some scripting. For example, add a
button to the form and define how the button behaves when clicked.

3

Define the script.

a

Select Tools | Script Wizard to open the wizard.

b

Select the validation event from the drop-down list.

c

Select the fields or controls for which the script is implemented.

Appropriate code will be generated based on your selections.

c

Click Select All and then Copy.

Advertising