Description
Represents a menu event in SAP Business One application (click on a menu item only). You use this object to interfere with SAP Business One process for this event.
Example
The following sample codes shows how to use the MenuEvent to catch events on menu items.
| (Visual Basic) | Copy Code |
|---|
Private Sub SBO_Application_MenuEvent(pVal As SAPbouiCOM.IMenuEvent, BubbleEvent As Boolean)
    If pVal.BeforeAction = True Then
        SBO_Application.MessageBox _
        "Menu itme: " + pVal.MenuUID + " sent an event BEFORE SAP Business One processes it.", bmt_Long, True
       Â
       Â
       Â
    Else
        SBO_Application.MessageBox _
        "Menu itme: " & pVal.MenuUID & " sent an event AFTER SAP Business One processes it.", bmt_Long, True
    End If
End Sub |
|
See Also