Skip to main content

Posts

Showing posts with the label Axapta theory layer

Code to Get specified layer object in MSD axapta x++

This Job gets you the list of objects(Forms) which are developed in user layer. This can be achieved in many possible ways..This job will be time consuming as it uses tree node to find the objects. Also, if you click the object in the info displayed, the corresponding form gets opened. static void getLayers(Args _args) { treeNode treeNode; xInfo xInfo = new xInfo(); #AOT ; treeNode = xInfo.findNode(#FormsPath); treeNode = treeNode.AOTfirstChild(); while (treeNode) { if(treeNode.applObjectLayer() == utilEntryLevel::usr) { info(treeNode.TreeNodeName(),'', sysinfoaction_formrun::newFormname(treeNode.TreeNodeName(),'','')); } treeNode = treeNode.AOTnextSibling(); }