Cheat Sheet / Microsoft Dynamics AX 2012 Dec 22, 2014 • Steve Gérer des objets de l’AOT Effacer un menu ou modifier les propriétés d’un menu (valable pour d’autres objets) : static void Job15(Args _args) { TreeNode treeMenu; TreeNode treeMenuItem; treeMenu = TreeNode::findNode(#MenusPath + "\\" + "ProductionControl" + "\\..."); treeMenu.AOTdelete(); treeMenuItem = TreeNode::findNode(#MenusPath); treeMenu = TreeNode::findNode(#MenusPath + "\\" + "ProductionControl" + "\\..."); treeMenu.AOTsetProperties("PROPERTIES\n IsDisplayedInContentArea #" + "Yes" + "\n ENDPROPERTIES\n"); treeMenu.AOTsave(); } Effacer une classe : static void Job15(Args _args) { #AOT TreeNode treeNode; TreeNode treeNodeClass; treeNode = TreeNode::findNode(#ClassesPath); treeNodeClass = treeNode.AOTfindChild('...'); if(treeNodeClass) { treeNodeClass.AOTdelete(); } } Please enable JavaScript to view the comments powered by Disqus.