X++ job to treverse AOT Tables
static void TreversrAOTTables(Args _args)
{
#AOT
Treenode TableNode;
Treenode Table;
str TableName;
str tableConfigKey;
int i;
int nodeCount;
;
TableNode = treenode::findNode(#TablesPath);
// Count of all the forms.
nodeCount = TableNode.AOTchildNodeCount();
Table = TableNode.AOTfirstChild();
for (i=1; i<=nodeCount; ++i)
{
TableName = Table.AOTgetProperty("Name");
tableConfigKey = Table.AOTgetProperty("ConfigurationKey");
if (tableConfigKey == 'WMSAdvanced')
{
info(TableName);
}
table = table.AOTnextSibling();
}
}
{
#AOT
Treenode TableNode;
Treenode Table;
str TableName;
str tableConfigKey;
int i;
int nodeCount;
;
TableNode = treenode::findNode(#TablesPath);
// Count of all the forms.
nodeCount = TableNode.AOTchildNodeCount();
Table = TableNode.AOTfirstChild();
for (i=1; i<=nodeCount; ++i)
{
TableName = Table.AOTgetProperty("Name");
tableConfigKey = Table.AOTgetProperty("ConfigurationKey");
if (tableConfigKey == 'WMSAdvanced')
{
info(TableName);
}
table = table.AOTnextSibling();
}
}
Comments
Post a Comment