cancel
Showing results for 
Search instead for 
Did you mean: 

B1Wizard - OnLanguageChanged - What to do to add menu via the addMenus.xml file?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

pedro_magueija
Active Contributor
0 Kudos

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


View Pedro Magueija's profile on LinkedIn

Former Member
0 Kudos

Hi Pedro,

It works as expected. TQVM.

Thanks & rgds, Mok

Answers (0)