cancel
Showing results for 
Search instead for 
Did you mean: 

HELP WITH NAVIGATION

Former Member
0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Fernando,

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.

Hope helps,

Ibai Peñ

Answers (1)

Answers (1)

Former Member
0 Kudos

thanks... you are my hero!! ^^