Select to view content in your preferred language

DAML - add to an existing menu item

463
2
Jump to solution
06-14-2023 10:36 AM
BrianBulla
Honored Contributor

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".

BrianBulla_0-1686763818832.png

 

 

	<updateModule refID="esri_mapping">
		<menus>
			<updateMenu refID="esri_mapping_layerContextMenu">
				<insertButton refID="Hyperlink_Button" placeWith="esri_mapping_SetDataSourceContextMenuItem" separator="true"/>
			</updateMenu>
		</menus>
	</updateModule>

 

 

 

0 Kudos
1 Solution

Accepted Solutions
NarelleChedzey
Esri Contributor

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

View solution in original post

2 Replies
NarelleChedzey
Esri Contributor

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

BrianBulla
Honored Contributor

Thanks Narelle...

That works perfectly!

BrianBulla_1-1686833614217.png

 

	  <updateModule refID="esri_editing_EditingModule">
		  <menus>
			  <updateMenu refID="esri_editing_data">
				  <insertButton refID="Hyperlink_Button" placeWith="esri_mapping_SetDataSourceContextMenuItem" separator="true"/>
			  </updateMenu>
		  </menus>
	  </updateModule>

 

 

0 Kudos