OnAction

This event triggers if any of the configured actions in the Verifier Design Mode were caused by the user clicking a button or pressing any of the configured keyboard short cuts.

Syntax

Document_OnAction (pWorkdoc as ISCBCdrWorkdoc, ActionName as String)
Definition Description
pWorkdoc Reference to the currently displayed workdoc.
ActionName Name of the action assigned to the pressed button or short cut key.

Sample Code

Sub Document_OnAction(pWorkdoc as SCBCdrPROJLib.SCBCdrWorkdoc, ByVal ActionName as String)
   If ActionName = "ShowBestSuppliers" Then
      Call fnShowBestSuppliers(pWorkdoc,pWorkdoc.Fields(FIELDNAME),"", "", "")
   End If
End Sub