Finding if a node is existing in lower layers Dynamics Ax
Views (1441)
Sometime when we were automating our form documentation methodology I had one particular requirement. I had to find if a component exists in the lower layer(Below BUS layer in our case). I tried searching for a way in the standard Ax to figure out. But i was unsuccessful, so at the end I wrote myself a small piece of code that will indicate if a component exists in the lower layer.
Here it goes
UtilEntryLevel getHighestBelowCurLayer(TreeNode _treeNode)
{
UtilEntryLevel layer, highestLayer;
;
for (layer=UtilEntryLevel::sys; layer < UtilEntryLevel::bus; layer++)
{
if (SysTreeNode::isNodeInLayer(_treeNode, layer))
{
highestLayer = layer;
break;
}
}
return highestLayer;
}
This was originally posted here.

Like
Report
*This post is locked for comments