Forum Discussion
christopher_gillis
8 years agoCommunity Manager
Hello,
The easiest way to add this action would be to edit the CUI element that controls the existing context menu of the Tree Grid View. You can do this by exposing the CommandBarSection ItemType to the TOC and searching for a Location of TGV Context Menu. In a default environment, you should only get one result from this search. From here you can add a new Menu to the context menu for all TGVs. When you open this new menu, you can set the JavaScript Method that should run when the user clicks on it. You can use the existing MSO_OpenInOffice method as a basis for creating this custom method to run from the TGV.
If you are using 11.0 SP12+, you can also create your own custom CommandBarSection to avoid needing to add this new menu option globally to all TGVs. You can configure this option through the Linked Toolbar/Context Menu field on the Tree Grid View form.
You can look here for an introduction to modifying and creating your own CUI elements.
Chris
Christopher Gillis Aras Labs Software Engineer
Christopher Gillis Aras Labs Software Engineer