on 04-20-2015 1:34 PM
now am giving this menu id 43520
but in 9.1 its showing below human resources module
i want that after reports means Last
please help
Hi Nikhil,
To add menu:
SAPbouiCOM.MenuItem oMenuItem = default(SAPbouiCOM.MenuItem);
SAPbouiCOM.Menus oMenus = default(SAPbouiCOM.Menus);
SAPbouiCOM.MenuCreationParams oCreationPackage = default(SAPbouiCOM.MenuCreationParams);
try
{
oMenuItem = SBO_Value.SBO_Application.Menus.Item(UniqueID);
return;
}
catch
{
}
oCreationPackage = (SAPbouiCOM.MenuCreationParams)SBO_Value.SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams);
oMenuItem = SBO_Value.SBO_Application.Menus.Item(ParentMenu);
oMenus = oMenuItem.SubMenus;
oCreationPackage.Type = MenuType;
oCreationPackage.UniqueID = UniqueID;
oCreationPackage.String = Name;
oCreationPackage.Enabled = true;
oCreationPackage.Position = Position;
oCreationPackage.Image = ImagePath;
oMenus.AddEx(oCreationPackage);
You need to change your Menu Position. So just increment it by 1.
Hope it helps.
Thanks & Regards
Ankit Chauhan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
103 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.