Exportfile for AOT version 1.0 or later Formatversion: 1 ***Element: JOB ; Microsoft Dynamics AX Job: se_topLayer unloaded ; -------------------------------------------------------------------------------- JOBVERSION 1 SOURCE #se_topLayer #// Shows the top most layer of an AOT object (in this example it is the Address table). #// Made by Studio Erudit. # #static void se_topLayer(Args _args) #{ # #AOT # # int i; # str strAOTObjectPath = #TablesPath + '\\' + tablestr(Address); # TreeNode treeNode = TreeNode::findNode(strAOTObjectPath); # UtilEntryLevel topLayer; # ; # # for (i = 0; i <= 0xf; i++) # { # if (bitTest(treeNode.applObjectLayerMask(), 1 << i)) # { # topLayer = max(topLayer, i); # } # } # # print topLayer; # # pause; #} ENDSOURCE ***Element: END