TreeNode.AOTedit Method [AX 2012]

Opens the appropriate editor for this node.

public void AOTedit([int Line, int Column])

Run On

Called

Parameters

Line
Type: int
The line of the cursor position; optional.
Column
Type: int
The column of the cursor position; optional.

If the node is a method, the code editor will open. If the node is a documentation object, the Help editor will open.

The following code example opens the X++ editor, shows the class declaration of the class Tax, and positions the pointer at line 6, column 8.

#AOT 
static void myJobAOTEdit(Args _args) 
{ 
    treeNode treeNode; 
 
    treeNode = TreeNode::findNode(#ClassesPath + '\\' + classStr(Tax)+ '\\ClassDeclaration'); 
 
    if (treeNode) 
    { 
        treeNode.AOTedit(6,8); 
    } 
    else 
    { 
        print "Could not find treeNode"; 
    } 
    pause; 
}

Community Additions

ADD
Show: