Skip to Content
author's profile photo Former Member
Former Member

Event Filtering


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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 06, 2005 at 11:27 AM


    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_EXCELORDER

    oSboFilter.Add EB_MAINTFORM

    oSboFilter.Add EB_KAARTFORM

    oSboFilter.Add ORDER_FORM

    oSboFilter.Add LEVERING_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 ...)



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.