Skip to Content

Icon Menu AddOn Browser version

Jan 25, 2017 at 10:50 AM


avatar image
Former Member

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 :)

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Varnavas Eleftheriou 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";

10 |10000 characters needed characters left characters exceeded