Thursday, October 29, 2015

Retrieve the Query name linked to a View

Hi All

Below the code in order to retrieve the query name that defines a View.
    #AOT
    #Properties

    TreeNode          treeNode;
    QueryName         QueryName;

    treeNode = TreeNode::findNode(#ViewsPath+'\\'+ 'ViewName');
    QueryName = findProperty(treeNode.AOTgetProperties(), #PropertyQuery);
   
    info ( QueryName );

That’s it!
 

No comments: