xInfo.getNode Method [AX 2012]
Retrieves a tree node that corresponds to a node in the AOT.
public TreeNode getNode(
UtilElementType UtilType,
str Name,
[UtilElementId ParentId,
int Type,
UtilEntryLevel Utillevel,
boolean Forcelevel,
int Mode,
boolean OldUtil])
Run On
CalledParameters
- UtilType
- Type: UtilElementType Enumeration
A UtilElementType system enumeration value that indicates the type of node to retrieve.
- Name
- Type: str
The name of the node to retrieve.
- ParentId
- Type: UtilElementId Extended Data Type
The handle for the parent of the node to retrieve; optional.
- Type
- Type: int
The type of the node.
- Utillevel
- Type: UtilEntryLevel Enumeration
The layer from which to take the node; optional.
- Forcelevel
- Type: boolean
A Boolean value that indicates whether to force a get from the layer that is specified by the UtilEntryLevel parameter. If set to false, and there is no content for the node in the layer specified, the node will be taken from the next layer below that does contain content. If set to true and there is no content in the layer specified, the method will return nullNothingnullptrunita null reference (Nothing in Visual Basic).
- Mode
- Type: int
The mode in which to load the node.
- OldUtil
- Type: boolean
A Boolean value that indicates whether to take the node from the old AOT in the old AOT folder.
Return Value
Type: TreeNode ClassThe tree node that is specified by the UtilType and Name parameters.
The node returned is not linked into the AOT, so you cannot perform operations on the node. To perform operations on a node, use the findNode or rootNode method instead.
The default value for the UtilLevel parameter is the current layer.
The possible values for the Mode parameter are:
-
0x001: Load for run
-
0x002: Load for edit
The default value of the ForceLevel parameter is false. If it is set to false, and there is no content in the layer specified, the node will be taken from the next layer below this that does have content. If it is set to true, and there is no content in the layer, the method will return nullNothingnullptrunita null reference (Nothing in Visual Basic).