Add context menu entries to selected objects in the the Attribute pane

03-08-2021 04:45 PM
Esri Contributor

Pro 2.7

I'm looking to add new context menus when a user right clicks on a selected feature in the Attributes pane.

ArcGIS Pro -  Attribute Pane.jpg


The Pro SDK Developer sample, InsertIntoContextMenu, is where I started but I'm getting stuck figuring out the RefID for the objects in the attribute pane.

I've searched the Editing.DAML but I'm not entirely sure what to look for.

I'm working with the Utility Network so the selected features could be either Spatial (red arrow) or Non-spatial (purple arrow) objects. 

Any help on how to find the appropriate RefIDs would be greatly appreciated.



2 Replies
Occasional Contributor III

If you check the "show command IDs" in the Options dialog...



... Pro should display the ID of the contextmenu items when you hover on them.



Unfortunately it doesn't seem to tell you the contextmenu IDs (I wish it did).

I think you'll be updating esri_mapping_layerContextMenu or

esri_mapping_standaloneTableContextMenu (for non-spatial).


0 Kudos
Esri Contributor

Hi Kirk,

I completely agree that the IDs of Context Menus should be displayed when hovering over them.

To find the correct Context Menus, here were my steps.

  1. Got the ID of a button in the context menu
  2. Opened the editing.daml file (C:\Program Files\ArcGIS\Pro\bin\Extensions\Editing)
  3. Searched for all instances the button ID
  4. For each Menu item, I compared the entries to what I was seeing in Pro.EditingDaml.JPG



I found 3 instances where the new context menu item will be useful

1.  esri_editing_Attributes_RelatedNonFeatureRowContextMenu

2.  esri_editing_Attributes_NonFeatureRowContextMenu

3.  esri_editing_Attributes_TableContextMenu


I'll be upadating my Config.daml file later today.  Hopefully, this works!


0 Kudos