TreeNode.AOTgetProperties Method [AX 2012]
Returns a string containing the properties of the tree node.
The following example provides a list of temporary tables in Microsoft Dynamics AX.
{
#aot
#properties
TreeNode tn = TreeNode::findNode(#TablesPath);
str tableName;
str temporaryProperty;
tn = tn.AOTfirstChild();
while (tn)
{
tableName = findProperty(tn.AOTgetProperties(), #PropertyName);
temporaryProperty = findProperty(
tn.AOTgetProperties(),
#PropertyTemporary);
info (strfmt(
'Table %1 has the temporary property specified as %2',
tableName, temporaryProperty));
tn = tn.AOTnextSibling();
}
}
Community Additions
ADD
Show: