cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with adding menu items to main menu form (169) - SAP B1, 9.2 PL 04, 64-bit

Former Member
0 Kudos

Hi,

I've got a strange problem, I use following method to add menu items to SAP:

_app.LoadBatchActions(ref xml);

This works perfectly with modules menu, but not main menu (form 169). Main menu almost always lacks some items, which are disabled in main menu form settings. This seems to happen randomly. Any ideas?

XML content:

<Application>
<Menus>
<Action type="add">
<Menu Checked="0" Enabled="1" FatherUID="43520" String="ZES" Type="2" UniqueID="m818f7fa4e02a4340be519db82b0c9b27">
<Menus>
<Action type="add">
<Menu Checked="0" Enabled="1" FatherUID="m818f7fa4e02a4340be519db82b0c9b27" String="ZES 1" Type="1" UniqueID="m32f5243b0354431ab4f1b40f49c6d2af" />
<Menu Checked="0" Enabled="1" FatherUID="m818f7fa4e02a4340be519db82b0c9b27" String="ZES 2" Type="1" UniqueID="m93d5ede72f4b4397aa5b9c722aa08181" />
<Menu Checked="0" Enabled="1" FatherUID="m818f7fa4e02a4340be519db82b0c9b27" String="ZES 3" Type="1" UniqueID="m3f8f66a54bea428ba1d3babd94857024" />
<Menu Checked="0" Enabled="1" FatherUID="m818f7fa4e02a4340be519db82b0c9b27" String="ZES 4" Type="1" UniqueID="mb1d226f217f449de9c1fd4bdef932e20" />
<Menu Checked="0" Enabled="1" FatherUID="m818f7fa4e02a4340be519db82b0c9b27" String="ZES 5" Type="1" UniqueID="mfdf64ef73a504517b6e6d6eb7e4f7f89" />
<Menu Checked="0" Enabled="1" FatherUID="m818f7fa4e02a4340be519db82b0c9b27" String="ZES 6" Type="1" UniqueID="mf05eb2582db14d339e116907b3ceb50c" />
</Action>
</Menus>
</Menu>
</Action>
</Menus>
</Application>

0 Kudos

Hello. Did you try _app.GetLastBatchResults() to determine error?

Accepted Solutions (0)

Answers (0)