cancel
Showing results for 
Search instead for 
Did you mean: 

Filter Event and Menu Event

Former Member
0 Kudos

Hello,

when I set a filter event on my application object, I don't receive Menu Event anymore.

Which Event am I suppose to add to have the Menu Event ?

I thought the filter was only on item Event.

Thanks for your help

Sébastien

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sebastien,

There is a specific event type for menu click events, named et_MENU_CLICK. The way to use it is the same as others.


oFilters = New SAPbouiCOM.EventFilters
oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_MENU_CLICK)
oFilter.AddEx("149")
con.SetFilter(oFilters)

From the UI API help file:

et_MENU_CLICK: Specifies Mouse UP occurred on menu item (without sub-menus) in SAP Business One application.

Hope helps,

Ibai Peñ

Former Member
0 Kudos

Thanks Ibai,

for a strange reason, it didn't work 2 hours ago, and now it's OK.

except that it work without the Form Type

Sebastien