Hi,
I'm trying to figure out how to add a new menu item to the "Data" menu when right clicking on a layer in the TOC.
The code below will add it to the layers context menu, but doesn't place it into the correct location. I can't seem to find an ID for the "Data" menu. I want my new item to appear under "Set Data Source".
<updateModule refID="esri_mapping">
<menus>
<updateMenu refID="esri_mapping_layerContextMenu">
<insertButton refID="Hyperlink_Button" placeWith="esri_mapping_SetDataSourceContextMenuItem" separator="true"/>
</updateMenu>
</menus>
</updateModule>
Solved! Go to Solution.
Hi Brian,
Try updating the editing module ("esri_editing_EditingModule") and the "esri_editing_data" menu (or "esri_editing_standalonetable_data_menu" for standalone tables)
This sub menu is inserted into the "esri_mapping_layerContextMenu"
Narelle
Hi Brian,
Try updating the editing module ("esri_editing_EditingModule") and the "esri_editing_data" menu (or "esri_editing_standalonetable_data_menu" for standalone tables)
This sub menu is inserted into the "esri_mapping_layerContextMenu"
Narelle
Thanks Narelle...
That works perfectly!
<updateModule refID="esri_editing_EditingModule">
<menus>
<updateMenu refID="esri_editing_data">
<insertButton refID="Hyperlink_Button" placeWith="esri_mapping_SetDataSourceContextMenuItem" separator="true"/>
</updateMenu>
</menus>
</updateModule>