Hi
Can anyone give me any help ref event filtering please. I think I have added the relevant filters ok. I have added a menu item to the main sbo menu which in turn has 3 subitems. When a subitem is clicked a form is loaded.
When I click on the first menu item the 3 sub items are displayed, but when I click on those no form is loaded.
I understand event filtering speeds things up
Any ideas greatly received
Regards Andy
ps sbo V6.5
Hi,
If you have the (current version of) the help fiel for the UI-com object: open it, open 'contents', open 'Programming with the UI API', open 'Event handling' and try the article 'Filtering events'.
Otherwise, here is a code fragment I'm using
'// Create a new EventFilters object
Set oSboFilters = New SAPbouiCOM.EventFilters
'
' Set oSboFilter = oSboFilters.Add(et_FORM_KEY_DOWN)
' oSboFilter.Add EB_EXCELQUOTATION
Set oSboFilter = oSboFilters.Add(et_ITEM_PRESSED)
oSboFilter.Add OFFERTE_FORM
oSboFilter.Add EB_EXCELQUOTATION
oSboFilter.Add EB_EXCELORDER
oSboFilter.Add EB_MAINTFORM
oSboFilter.Add EB_KAARTFORM
oSboFilter.Add ORDER_FORM
oSboFilter.Add LEVERING_FORM
oSboFilter.Add GOEDONTVANGST_FORM
Set oSboFilter = oSboFilters.Add(et_FORM_LOAD)
oSboFilter.Add OFFERTE_FORM
oSboFilter.Add ORDER_FORM
oSboFilter.Add LEVERING_FORM
Set oSboFilter = oSboFilters.Add(et_MENU_CLICK)
'// Setting the application with the EventFilters object
'// in this case we will process a click event for form types 142 and 139
'// and we will process a key down event for for form type 139
Sbo_application.SetFilter oSboFilters
But that is just some general eventfiltering info. Any way an event you are not filtering, you will not receive. BUT if you disable the event filters you will receive every event (both in befroe and after event) So you could use that to check what event you are not catching (but do not let sbo loose focus cuase that generattes events too and then it's all a pain in the ...)
Regards,
Jacques
Add a comment