cancel
Showing results for 
Search instead for 
Did you mean: 

Problem adding menu item

Former Member
0 Kudos

Hey All,

We have code from the SDK sample to add menu items. This works fine and adds our items to the main menu with no problems. When the add on is started manually through the addon administration the menu event handling behind this custom menu does not seem to work. If I start the addon manually from the exe file in the folder directly when B1 is running the logic works.

It seems very odd that it wouldn't work when B1 runs the program directly. Any ideas why this would happen? We are handling the menu event for menu 169 which is the main menu and when the user clicks the menu id that I added we open a new form. This logic works just fine when the add on is set to start automatically.

Any ideas?

Accepted Solutions (1)

Accepted Solutions (1)

Nussi
Active Contributor
0 Kudos

be sure that when you use event filters that you enable menu_click

in C#

oFilter = oFilters.Add(SAPbouiCOM.BoEventTypes.et_MENU_CLICK);

than you can handle/get the menuevents

Answers (1)

Answers (1)

Gianluigi
Product and Topic Expert
Product and Topic Expert
0 Kudos

I guess you should profile your execution. Use B1 .NET Profiler part of B1TE package. You can download it from SDN under Business One SDK Tools.