Microsoft Dynamics AX Developer Center Headlines

My Card

Friday, July 23, 2010

Get the current navigation pane area through program

Getting the current opened navigation pane area for the use through program might be useful where you want to perform an action depending upon in which module user is currently working. For ex: You might want to show the docuref comments depending upon the opened module or navigation pane.
static void GetCurrentNavPaneArea(Args _args)
{
xInfo objxInfo;
xNavPane objxNavPane;
Treenode objTreeNode;
xTaskPane xtask;
Treenode t;
;
objxInfo = new xInfo();
objxNavPane = new xNavPane();
objTreeNode = objxNavPane.getSelectedPlacesNode();
info(objTreeNode.AOTparent().treeNodeName());
}