User guide

DOKuStar Validation Programming Manual Page 46
OnDocumentDescriptorLost,
OnDocumentDescriptorGot
These events all occur when a document’s descriptor changes.
The event might be caused by user action (the user changed the document type) or by a script itself.
Changing the descriptor is a two-step process: A document looses his 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
Definition:
Private Sub doc_OnDocumentDescriptorLost(Document As Document, DocumentDescriptor As
DocumentDescriptor, NextDocumentDescriptor As DocumentDescriptor)
Document is the document whose descriptor changes
DocumentDescriptor is the current descriptor
NextDocumentDescriptor is the descriptor the user selected from the context menu
Private Sub doc_OnDocumentDescriptorGot(Document As Document, DocumentDescriptor As
DocumentDescriptor, PreviousDocumentDescriptor As DocumentDescriptor)
Document is the document whose descriptor changes
DocumentDescriptor is the new current descriptor
PreviousDocumentDescriptor is the old descriptor