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);
}
Add comment