TreeNode.AOTgetProperties Method [AX 2012]

Returns a string containing the properties of the tree node.

public str AOTgetProperties(
   [boolean includeInvisible, 
    boolean includeReadOnly, 
    boolean includeNonExportable])

Run On

Called

Parameters

includeInvisible
Type: boolean
includeReadOnly
Type: boolean
includeNonExportable
Type: boolean

Return Value

Type: str
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: