static void GetTableProperty(Args _args)
{
TreeNode johnFldsRoot = treeNode::findNode(@”\Data Dictionary\Tables\JohnTestTable\Fields”);
TreeNodeIterator johnFldsIterator;
TreeNode johnFlds;
NoYes visibleProp;
;
johnFldsIterator = johnFldsRoot.AOTiterator();
johnFlds = johnFldsIterator.next();
while(johnFlds)
{
if(johnFlds.AOTgetProperty(‘Visible’) == ‘No’)
info(strfmt(“field %1”, johnFlds.treeNodeName()));
johnFlds = johnFldsIterator.next();
}
}
Reblogged this on DYNAMICS AX SOLUTIONS.
LikeLike