Skip to Content
avatar image
Former Member

Icon Menu AddOn Browser version

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

                // 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";
                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 :)

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Feb 02, 2017 at 03:48 PM

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

    Add comment
    10|10000 characters needed characters exceeded