cancel
Showing results for 
Search instead for 
Did you mean: 

only an Event Filter for my Addon !?

Former Member
0 Kudos

hi,

is it possible to set the event filter only for my addon and not for standard function or other addons ?

in my addon i'm usin a crystal report viewer. So i catch the Menu_CLICK-event 519 (preview) and 520 (print)

But when i use the event filter on a special form, the event Filter is set for the whole Business One.

For example, i set my filter on form 139. But if the user print on other forms (140, 133,...) the standard PLD should work !

What is going wrong?


oFilters = New SAPbouiCOM.EventFilters()
oFilter = oFilters.Add SAPbouiCOM.BoEventTypes.et_MENU_CLICK)
oFilter.AddEx("139") 'Formular 
moSBOApplication.SetFilter(oFilters)

regards

Markus

Accepted Solutions (1)

Accepted Solutions (1)

rasmuswulff_jensen
Active Contributor
0 Kudos

just leave out the oFilter.AddEx("139") 'Formular

then it shoud work... The Menu_click event is somewhat different, so what we do normally is just to catch menu_clicks but not on which forms (= all forms)

Former Member
0 Kudos

Hi Rasmus,

thanks for help. Everything works fine now. I made some mistakes with the bubbleevent

thanks

Markus

Answers (0)