Kofax DOKuStar Validation User Manual

Page 37

Advertising
background image

DOKuStar Validation Programming Manual

Page

33

In the event handling routine, we must therefore determine if we got the correct field by asking for the field’s name
(

Field.Name

) and for the name of the corresponding document (

Field.Document.Name

). If these are

Amount

and

Invoice

, we open the dialog box.

Which way of defining the event you prefer, depends very much on the project: Suppose there are many different
document types, all of them having an

Amount

field, and the same code should be executed if any of these fields

change. Then here to define an event handling function for every single document type would be tedious, so you
would prefer the second method. On the other hand, if only a specialized behavior for an index field on a special
document type is desired, the first method is more convenient.

These two short examples might have given you an idea how to do scripting. The next chapters will go more into the
details. Before that, let us take a closer look at the VBA studio.

Advertising