Salı, Haziran 29, 2010

Create MenuItem with X++

static void CreateMenuItem(AGC_InventParameters _inventParameters)
{
#AOT
TreeNode treeMenuItem;
TreeNode treeDisplayMenu;
TreeNode treeMenus;
TreeNode treeMenu;

;

treeMenuItem = TreeNode::findNode(#MenuItemsDisplayPath);
treeDisplaymenu = TreeNode::findNode(#MenuItemsDisplayPath + "\\" + "AGC_InventParameters");

if (treeDisplayMenu)
{
treeMenuItem.AOTadd(_inventParameters.Kodu+"Form_Agc");
treeDisplayMenu = treeMenuItem.AOTfindChild(_inventParameters.Kodu+"Form_Agc");
treeDisplayMenu.AOTsave();
}
//info ("Menuitem" + _inventParameters.Kodu+ "Form_AGC" + "olusturuldu.");

}

Hiç yorum yok:

Yorum Gönder