Code to know in how many layers an AOT class is being modified
Thank you Jan B. Kjeldsen for the code.
static void UtilElementTest(Args _args)
{
UtilElements utilElements;
;
setPrefix('Querying UtilElements...');
while select utilElements
where utilElements.parentId == classNum(SalesFormLetter)
// && utilElements.recordType == UtilElementType::ClassInstanceMethod
&& utilElements.utilLevel != UtilEntryLevel::sys
{
info('Name: ' + utilElements.name +
', Layer: ' + enum2str(utilElements.utilLevel) +
', Object type: ' + enum2str(utilElements.recordType));
}
}
No comments:
Post a Comment