Buttons built by ArcGIS Pro SDK cannot be added to the context menu of the SHP layer

488
2
Jump to solution
04-28-2021 01:34 AM
圈圈
by
New Contributor III

Use Pro SDK to build a button, and it can be used normally in the context menu of feature layer of  file geographic database,  but the context menu of SHP layer does not show the custom button. DAML as follows

<updateModule refID="esri_mapping">
  <menus>
    <updateMenu refID="esri_mapping_layerContextMenu">
      <insertButton refID="ProAppModule_Button_ApplySymbology" placeWith="esri_mapping_selectedLayerSymbologyButton" />
    </updateMenu>
  </menus>
</updateModule>

Isn't the context menu of SHP layer 'esri_mapping_layerContextMenu' in the SDK?

0 Kudos
1 Solution

Accepted Solutions
CharlesMacleod
Esri Regular Contributor

try 

<updateMenu refID="esri_mapping_unregisteredLayerContextMenu">

View solution in original post

2 Replies
CharlesMacleod
Esri Regular Contributor

try 

<updateMenu refID="esri_mapping_unregisteredLayerContextMenu">

圈圈
by
New Contributor III

Thankyou!You are right!

0 Kudos