on 04-09-2018 1:17 PM - last edited on 02-04-2024 3:56 AM by postmig_api_4
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>
User | Count |
---|---|
98 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.