TreeNode Class [AX 2012]

The TreeNode class retrieves and represents any node in the Application Object Tree (AOT).

class TreeNode extends Object

Run On

Called

  MethodDescription
Gg958198.pubmethod(en-us,AX.60).gif AOTadd Creates a subnode to the tree node in the Application Object Tree (AOT).
Gg958198.pubmethod(en-us,AX.60).gif AOTaddExtendedDataType This method is not supported in Microsoft Dynamics AX. If you need to add a subnode of this type, use the instead.
Gg958198.pubmethod(en-us,AX.60).gif AOTaddRelation This method is not supported in Microsoft Dynamics AX. If you need to add a subnode of this type, use the instead.
Gg958198.pubmethod(en-us,AX.60).gif AOTaddSubNode Creates subnodes for extended data types and relations.
Gg958198.pubmethod(en-us,AX.60).gif AOTaddXref
Gg958198.pubmethod(en-us,AX.60).gif AOTAllowEdit
Gg958198.pubmethod(en-us,AX.60).gif AOTbitmapId Returns the resource ID of the bitmap of the tree node.
Gg958198.pubmethod(en-us,AX.60).gif AOTchildNodeCount Counts the number of child nodes that a given tree node has.
Gg958198.pubmethod(en-us,AX.60).gif AOTcompile Compiles this node and its subnodes.
Gg958198.pubmethod(en-us,AX.60).gif AOTconfigure
Gg958198.pubmethod(en-us,AX.60).gif AOTdelete Deletes the tree node in the development layer that you are currently working in.
Gg958198.pubmethod(en-us,AX.60).gif AOTDrop Creates a copy of a specified tree node as a child to the TreeNode object.
Gg958198.pubmethod(en-us,AX.60).gif AOTDuplicate
Gg958198.pubmethod(en-us,AX.60).gif AOTedit Opens the appropriate editor for this node.
Gg958198.pubmethod(en-us,AX.60).gif AOTendXref
Gg958198.pubmethod(en-us,AX.60).gif AOTfindChild Finds the specified child node of this node.
Gg958198.pubmethod(en-us,AX.60).gif AOTfirstChild Retrieves the first child of the tree node.
Gg958198.pubmethod(en-us,AX.60).gif AOTfirstChildEx
Gg958198.pubmethod(en-us,AX.60).gif AOTgetExecutableLineCount Returns the number of executable lines of code for this node.
Gg958198.pubmethod(en-us,AX.60).gif AOTgetExecutableLines Returns the executable lines of code for this node.
Gg958198.pubmethod(en-us,AX.60).gif AOTGetModel
Gg958198.pubmethod(en-us,AX.60).gif AOTgetProperties Returns a string containing the properties of the tree node.
Gg958198.pubmethod(en-us,AX.60).gif AOTgetPropertiesExt
Gg958198.pubmethod(en-us,AX.60).gif AOTgetProperty
Gg958198.pubmethod(en-us,AX.60).gif AOTgetSource Returns the source code of this node.
Gg958198.pubmethod(en-us,AX.60).gif AOTIncludeInCompare
Gg958198.pubmethod(en-us,AX.60).gif AOTinsert Inserts a node among the subnodes of this node.
Gg958198.pubmethod(en-us,AX.60).gif AOTIsDirty
Gg958198.pubmethod(en-us,AX.60).gif AOTIsOld Indicates whether this node is from a file found in the old model store.
Gg958198.pubmethod(en-us,AX.60).gif AOTIsPersisted Indicates whether this node has been persisted in the model store.
Gg958198.pubmethod(en-us,AX.60).gif AOTIsProxyNode
Gg958198.pubmethod(en-us,AX.60).gif AOTiterator Returns an object which can be used to iterate the child nodes of the tree node.
Gg958198.pubmethod(en-us,AX.60).gif AOTKernelHelpType
Gg958198.pubmethod(en-us,AX.60).gif AOTLayer Returns the layer of the tree node.
Gg958198.pubmethod(en-us,AX.60).gif AOTLayers Returns a collection of the layers the tree node is defined in.
Gg958198.pubmethod(en-us,AX.60).gif AOTload Ensures that the object is loaded.
Gg958198.pubmethod(en-us,AX.60).gif AOTmakeXref Compiles this node and its subtree in the AOT, updating the cross-reference system.
Gg958198.pubmethod(en-us,AX.60).gif AOTmessageLine Writes text to the Application Object Tree (AOT) Message window.
Gg958198.pubmethod(en-us,AX.60).gif AOTMove
Gg958198.pubmethod(en-us,AX.60).gif AOTname Returns the value of the name property of the node.
Gg958198.pubmethod(en-us,AX.60).gif AOTnewWindow Opens a new AOT tree window with the tree node as the root.
Gg958198.pubmethod(en-us,AX.60).gif AOTnextSibling Returns the next node on the same level as the tree node.
Gg958198.pubmethod(en-us,AX.60).gif AOTObjectNode Indicates whether the node is an application object.
Gg958198.pubmethod(en-us,AX.60).gif AOToverlayBitmapId Returns the resource ID of the overlay in the AOT associated with this node.
Gg958198.pubmethod(en-us,AX.60).gif AOTparent Returns the parent node of the tree node.
Gg958198.pubmethod(en-us,AX.60).gif AOTprevious Returns the previous sibling of this tree node.
Gg958198.pubmethod(en-us,AX.60).gif AOTrefresh Refreshes the node with the latest changes to the .aod file.
Gg958198.pubmethod(en-us,AX.60).gif AOTregenerate
Gg958198.pubmethod(en-us,AX.60).gif AOTRename
Gg958198.pubmethod(en-us,AX.60).gif AOTrestore Reloads this node from the disk, if applicable.
Gg958198.pubmethod(en-us,AX.60).gif AOTrun Compiles this node and its subtree in the Application Object Tree (AOT).
Gg958198.pubmethod(en-us,AX.60).gif AOTsave Saves an Application Object Tree (AOT) node.
Gg958198.pubmethod(en-us,AX.60).gif AOTSetModel
Gg958198.pubmethod(en-us,AX.60).gif AOTsetProperties
Gg958198.pubmethod(en-us,AX.60).gif AOTsetPropertiesExt
Gg958198.pubmethod(en-us,AX.60).gif AOTsetProperty
Gg958198.pubmethod(en-us,AX.60).gif AOTsetSource Sets the source code of this node.
Gg958198.pubmethod(en-us,AX.60).gif AOTshowProperties Opens the property sheet (if not already open) and shows the properties for this node.
Gg958198.pubmethod(en-us,AX.60).gif AOTtoolTip Returns the tool tip associated with the tree node.
Gg958198.pubmethod(en-us,AX.60).gif AOTToString
Gg958198.pubmethod(en-us,AX.60).gif AOTtypeStr Returns the internal string code for the element type used in XPO files.
Gg958198.pubmethod(en-us,AX.60).gif AOTUtilFileType Retrieves the value of the UtilFileType enumeration type for the TreeNode object. The UtilFileType indicates which kind of file the application object is stored in.
Gg958198.pubmethod(en-us,AX.60).gif applObjectId Returns the application object ID, if applicable.
Gg958198.pubmethod(en-us,AX.60).gif applObjectLayerMask Returns a bitmask that specifies which layers contain this element.
Gg958198.pubmethod(en-us,AX.60).gif applObjectOldLayerMask Returns a bitmask that specifies which layers contain this element in the baseline model store.
Gg958198.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg958198.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg958198.pubmethod(en-us,AX.60).gif getNodeInLayer Retrieves a version of the tree node from a specified layer.
Gg958198.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg958198.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg958198.pubmethod(en-us,AX.60).gif hashKey
Gg958198.pubmethod(en-us,AX.60).gif makeCopy
Gg958198.pubmethod(en-us,AX.60).gif new Initializes a new instance of the TreeNode class. (Overrides the new Method.)
Gg958198.pubmethod(en-us,AX.60).gif newObjectName Returns a string that contains the name of the new element.
Gg958198.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg958198.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg958198.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg958198.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg958198.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg958198.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Overrides the toString Method.)
Gg958198.pubmethod(en-us,AX.60).gif treeNodeExport Exports this node and its subtree from the Application Object Tree (AOT).
Gg958198.pubmethod(en-us,AX.60).gif treeNodeName Returns the name of the tree node.
Gg958198.pubmethod(en-us,AX.60).gif treeNodePath Returns the unique path to the tree node within the Application Object Tree (AOT).
Gg958198.pubmethod(en-us,AX.60).gif treeNodeRelease Releases the tree node explicitly.
Gg958198.pubmethod(en-us,AX.60).gif treeNodeType Retrieves an instance of a TreeNodeType class that provides reflection information for the tree node.
Gg958198.pubmethod(en-us,AX.60).gif updateNodePermissions
Gg958198.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg958198.pubmethod(en-us,AX.60).gif utilElement Returns a UtilElements record that is related to the node.
Gg958198.pubmethod(en-us,AX.60).gif utilIdElement Returns a UtilIdElements record that is related to the node.
Gg958198.pubmethod(en-us,AX.60).gif validateNameCharacters
Gg958198.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg958198.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)
Gg958198.pubmethod(en-us,AX.60).gif Gg958198.static(en-us,AX.60).gif ::findNode Returns a specified node in the Application Object Tree (AOT).
Gg958198.pubmethod(en-us,AX.60).gif Gg958198.static(en-us,AX.60).gif ::generateObjectName
Gg958198.pubmethod(en-us,AX.60).gif Gg958198.static(en-us,AX.60).gif ::getMaximumNodeNameLength
Gg958198.pubmethod(en-us,AX.60).gif Gg958198.static(en-us,AX.60).gif ::isNodeReferenceValid
Gg958198.pubmethod(en-us,AX.60).gif Gg958198.static(en-us,AX.60).gif ::isValidObjectName Determines whether the string passed as an argument can be used as a name for a node in the Application Object Tree (AOT).
Gg958198.pubmethod(en-us,AX.60).gif Gg958198.static(en-us,AX.60).gif ::rootNode Returns the root node of the AOT.
Top

This class, and the classes that extend it, enable you to create, read, update, and delete X++ code and metadata. Make sure that the user has access to the development security key (SysDevelopment) before calling this API or APIs that are derived from this class.

The TreeNode class can be used to get a handle to any node in the AOT. The TreeNode class is a generic class in that it can be a reference to any type of node in the AOT.

In addition to providing access to some of the functions on the shortcut menu of the AOT, this class also contains methods that are used to maneuver in the tree. The TreeNodeTraverser class is also useful in navigating in the AOT.

The TreeNode::findNode and TreeNode::rootNode methods return a treeNode object from which you can maneuver to any other node.

Community Additions

ADD
Show: