Share via


SysTreeNode::getHighestLayer Method [AX 2012]

Gets the highest layer in which the tree node exists.

Syntax

client server public static UtilEntryLevel getHighestLayer(TreeNode _treeNode, [boolean _old])

Run On

Called

Parameters

  • _old
    Type: boolean
    A Boolean value that indicates whether the layer from the base line model store should be returned; optional.

Return Value

Type: UtilEntryLevel Enumeration
The highest layer.

Exceptions

Exception Condition
Error

No layer can be found.

Remarks

This method aggregates the layer information for sub-nodes. For example, if a root node exists in the SYS layer and has a sub-node in the USR layer, the USR layer is returned. If the tree node is not layer aware, the parents of the node will be visited to find the layer.

See Also

Reference

SysTreeNode Class