Kofax Getting Started with Ascent Xtrata Pro User Manual

Page 247

Advertising
background image

Chapter 5

228

Ascent Xtrata Pro User's Guide

b

Select the validation event from the drop-down list.

c

Select the fields or controls for which the script code is required.

Appropriate code will be generated based on your selections.

d

Click Select All and then Copy.

Figure 5-11. Script Wizard for ButtonClicked Event

e

Click Show Script to open the Script Code dialog box.

f

Select Edit | Paste from the context menu to insert the sample code. You

can then edit the code as needed.

Note

To compare the DoubleValue property of two fields, you cannot

use the “=“ sign. Instead, use
abs (field1.doublevalue – field2.doublevalue) < 0.02

g

Close the Script Code dialog box.

h

In the Script Wizard, click Close to save the script and to return to the

validation form.

Advertising