cancel
Showing results for 
Search instead for 
Did you mean: 

Icon Menu AddOn Browser version

Former Member
0 Kudos

Hi everybody, i've the following code for the icon in the AddOn menu, however it won't work on the web version, only on the desktop version

      try
            {
                // Get the menu collection of the newly added pop-up item
                oMenuItem = Application.SBO_Application.Menus.Item("Item");
                oMenus = oMenuItem.SubMenus;


                // Create s sub menu
                oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING;
                oCreationPackage.UniqueID = "UID";
                oCreationPackage.String = "Name";
                oMenus.AddEx(oCreationPackage);
                oCreationPackage.Image = sMyFile; //Does not work in web version
            }
            catch (Exception er)
            { //  Menu already exists
               // Application.SBO_Application.SetStatusBarMessage("Menu Already Exists", SAPbouiCOM.BoMessageTime.bmt_Short, true);
            }

Can someone show me an working example?

Thanks for the time 🙂

Accepted Solutions (0)

Answers (1)

Answers (1)

ens_
Active Participant
0 Kudos

Try having your icon in the \\{SERVER}\B1_SHR and then put your sMyFile = "\\\{SERVER}\\b1_shr\\menu.ico";