HELP WITH NAVIGATION
I created placed some editfields in a form, in order to replace user defined fields, i have a function to "populate" this fields, but, i can't catch the navigation event, can someone tell me these events please?
Ibai Peña replied
To get the navigation events you should catch MenuEvents. The Menu UID for the 4 related menus are: First 1290, Prev = 1289, Next = 1288, Last = 1291.
You shoud catch them with some code like:
Private Sub SBO_Application_MenuEvent(pVal As SAPbouiCOM.IMenuEvent, BubbleEvent As Boolean) If pVal.MenuUID = "1288" Or _ pVal.MenuUID = "1289" Or _ pVal.MenuUID = "1290" Or _ pVal.MenuUID = "1291" Then If pVal.BeforeAction = False Then Select Case pVal.MenuUID '// Under the If clause, check each item if it was clicked Case "1288" 'Handle Next Case ... End Select End If End If End Sub
To know the current form, you can use the ActiveForm property.