Before Run the Job, Create Table (Testtable) with fields MenuItemName, menuItemObject (You can extend with Name).
When you run the below Job data will populate in TestTable.
static void ListOfAllMenuitemsinAOT(Args _args)
{
UtilElements utilElements;
UtilEntryLevel LayerName = UtilEntryLevel::usr;
TreeNode treeNode;
TestTable testTable;
#Properties
#AOT
delete_from testTable;
while select utilElements
where utilElements.recordType == UtilElementType::ActionTool && utilElements.name like "axl*"
// && utilElements.utilLevel == LayerName //for layers filtering
{
treeNode = xUtilElements::getNodeInTree(xUtilElements::parentElement(utilElements));
testTable.MenuItemName = utilElements.name;
testTable.menuItemObject = treeNode.AOTgetProperty(#PropertyObject);
if(testTable.menuItemObject != "")
{
testTable.insert();
}
}
}
Subscribe to:
Post Comments (Atom)
Create number sequence in D365 FO
Create the data type. Add code in the loadModule method of the appropriate NumberSeqModule subclass. Add a method to the module’s paramet...
-
Dialogbutton dialogButtonConfirm; ; dialogButtonConfirm = Box::yesNo("continue ", dialogButton::Yes, ...
-
Breakpoints Command Shortcut key Remove all breakpoints. CTRL+SHIFT+F9 I...
-
Just use the below code to remove the special character from the string. strRem('String','*'); You can replace * with...
No comments:
Post a Comment