Fetch all the tables which have similar properties

Hi,
Below code helps You to fetch all the tables which have similar properties based on the properties that You provide.


static void se_findAOTObjectByProperty(Args _args)
{
#AOT
TreeNode treeNodeTables = TreeNode::findNode(#TablesPath);
TreeNode treeNode;
str strPropertyName = ‘SaveDataPerCompany’;
str strPropertyValue = ‘No’;
;

// first table
treeNode = treeNodeTables.AOTfirstChild();

while (treeNode != null)
{
if (treeNode.AOTgetProperty(strPropertyName)== strPropertyValue)
{
info(treeNode.AOTname());
}

// next table
treeNode = treeNode.AOTnextSibling();
}
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s