on 11-28-2014 6:28 AM
Hi all,
I'm using B1DE B1Wizard for developing addon. The addon menu was removed when the user changed the language. How to prevent the addon menu being removed automatically by SAP B1 or what to do to add back via the addMenus.xml file?
Thanks & rgds, Mok
Hi Wen,
Add this method to the class where the OnLanguageChanged is processed.
protected new void InitializeMenus()
{
XmlDocument addMenus = new XmlDocument();
addMenus.Load("addMenus.xml");
B1Connections.theAppl.LoadBatchActions(addMenus.InnerXml);
}
Set your addMenus.xml file to copy always to the output directory:
Then Rebuild your solution.
Best regards,
Pedro Magueija
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
107 | |
12 | |
11 | |
6 | |
5 | |
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.