beautypg.com

Ondocumentcreated, Ondocumentdatasourcechanged, Ondocumentdescriptorlost, ondocumentdescriptorgot – Kofax DOKuStar Validation User Manual

Page 32

background image

DOKuStar Validation for Ascent Capture

Page

28

OnDocumentCreated

This event will be fired when a new document is created.

This may happen explicitly (e.g. when the user splits a document in the tree view) or by scripting code.

Definition:

Private Sub doc_OnDocumentCreated(ByVal Document As Document)

OnDocumentDataSourceChanged

This event will be called when one of the data sources of the document (i.e. one of the images) is changing. This may
happen when

-

the user splits documents

-

the user joins documents

-

the user moves pages from one document to another

Definition:

Private Sub doc_OnDocumentDataSourceChanged(ByVal Document As Document)

Document

is the document whose data source has changed.

OnDocumentDescriptorLost,
OnDocumentDescriptorGot

These events all occur when a document’s descriptor changes.

Document Descriptor

is just a synonym for

Document Type

.

The event might be caused by user action (the user changed the form type) or by a script itself.

Changing the descriptor is a two-step process: A document looses its descriptor and then gets a new one. For each
step, there is a pair of events. Event order is as follows:

OnDocumentDescriptorLoosing

OnDocumentDescriptorGetting

OnDocumentDescriptorLost

OnDocumentDescriptorGot