Posts

Showing posts from April, 2017

Right-Click Context Menu in D365O on a Tree control

Image
AX 2012 used the PopupMenu class to create a right-click context menu. In D3650, Microsoft has done away with that and introduced the ContextMenu API which can be used to do the same thing. You can override the form control methods and use the  getContextMenuOptions  to create context menu options and override the  selectedMenuOption method  to select the menu options. Demo: AOTName - CostSheetDesigner form CostsheetDesignerCtrl is a class that helps to creates the context menu options "Cut", "Copy" and "Paste" in the createContextMenu and allows selection in selectContextMenuOption methods. Override form control method To create menu options in the CostsheetDesignerCtrl class Now for the selection: Override form control method Calls this method in the CostSheetDesignerCtrl class And the Right-click context menu in the form with the "Cut" and "Copy" options: