Showing results for 
Search instead for 
Did you mean: 

EventFilters problem with SBOApp_MenuEvent

Former Member
0 Kudos

I have a problem with sbo ui, the menu event is not firing when I use eventfilters.

I've tried to use

Set oFilter = oFilters.Add(et_ALL_EVENTS)

oFilter.Add "169"

to give all the events for the application menu and it still dosn't work, now I stopped using the filters until I can find a solution for this.

If anyone has a work around for this pls tell me.

Private Sub SetApplication()

Dim oGui As SAPbouiCOM.SboGuiApi

Dim sConnStr As String

Set oGui = New SAPbouiCOM.SboGuiApi

sConnStr = Command

oGui.Connect sConnStr

Set oApp = oGui.GetApplication()

Dim oFilters As SAPbouiCOM.EventFilters

Dim oFilter As SAPbouiCOM.EventFilter

Set oFilters = New SAPbouiCOM.EventFilters

Set oFilter = oFilters.Add(et_CLICK)

oFilter.AddEx "139"

Set oFilter = oFilters.Add(et_LOST_FOCUS)

oFilter.AddEx "139"

oApp.SetFilter oFilters

End Sub

Accepted Solutions (1)

Accepted Solutions (1)

Active Contributor
0 Kudos

Set oFilter = oFilters.Add(et_MENU_CLICK)

oFilter.Add "169"

or just leave out the oFilter.Add "169"...

(You can just add the event type but not specify on which forms it should be used (equals all forms))

Answers (0)