Select to view content in your preferred language

Add buttons to attribute table context menu

719
4
Jump to solution
09-21-2023 01:10 PM
Schweitzer
Emerging Contributor

I am wanting to add some additional buttons to the context menu.

table.png

I have tried many different versions of changing the Config.daml with no luck.

By looking at Editing.daml  it looks like the ID for the menu is "esri_editing_tableAllRowContextMenu"

 

			<updateModule refID="esri_mapping">
				<menus>
					<updateMenu refID="esri_editing_tableAllRowContextMenu">
						<insertButton refID="Menu_AttributeTable_Items_Button1" separator="false"   placeWith="esri_editing_tableDeleteRow" insert="after" />
					</updateMenu>
				</menus>
			</updateModule>
0 Kudos
1 Solution

Accepted Solutions
GKmieliauskas
Esri Regular Contributor

Hi, 

esri_editing_tableAllRowContextMenu is located in another module which refId is "esri_editing_EditingModule". Change "esri_mapping" to this one

View solution in original post

4 Replies
RichardDaniels
Frequent Contributor

Are you sure it is possible to modify buttons on a drop down menu? In some cases the buttons are not directly controlled by a user editable DAML file. See: is it possible to add button on toolbar in attribu... - Esri Community

0 Kudos
GKmieliauskas
Esri Regular Contributor

Hi, 

esri_editing_tableAllRowContextMenu is located in another module which refId is "esri_editing_EditingModule". Change "esri_mapping" to this one

Schweitzer
Emerging Contributor

Thank you this ended up working for me! Do you know if there is a resource for finding the REFID's of the different modules?

 

This is what my Code ended up looking like in case anyone else runs in to this same question.

		<updateModule refID="esri_editing_EditingModule">
			<menus>
				<updateMenu refID="esri_editing_tableAllRowContextMenu">
					<insertButton refID="Menu_AttributeTable_Items_Button1" separator="true"   />		
				</updateMenu>
			</menus>
		</updateModule>

 

0 Kudos
GKmieliauskas
Esri Regular Contributor

Starting point could be ArcGIS Pro DAML ID Reference .

The primary source for me is *.daml files in ArcGIS Pro installation folder. You can find modules and controls REFID's here. Structure of these files is the same as in your project config.daml