Owner's manual

DOKuStar Validation for Ascent Capture Page 66
Creating Menu Entries for Validation
The programming interface allows to change the menu entries of DOKuStar Validation. The appropriate service is
called
Workspace service. New menu entries can be added, existing menu entries can be replaced or deleted.
Now we will modify the menu using our add-in:
First of all we have to define the workspace by the line
Dim WithEvents workspaceSink As DOKuStarValidationServices.WorkspaceService.
Then we have to get the specific service for processing workspaces. That is done by the line
Set workspaceSink = dsValApp.Services("Workspace").
In our example we place the code that changes the menu in a separate function called
changeMenu(). There we
will replace the existing menu entries
New and Import.
In addition, we will add the modules
API_Declarations,
Translation
ValidationIDS
to our example. You will find the corresponding files in the directory
Common.