Select to view content in your preferred language

Capture the click event for the existing ArcGIS Pro button

1248
3
Jump to solution
01-16-2023 03:24 AM
newbiedotnetguy
Emerging Contributor

Hi,

I want to capture the changes which are edited for any feature layer.  So in the edit tab when the user edited any feature layer then on clicking on the save button edits will get saved in the database as per the connection string. I want to catch the event of that save button to capture those newly edited changes to use in other place.

From the daml I got the daml id and below is the one

         caption="Save" keytip="SV" extendedCaption="Save edits."
                condition="esri_editing_CanSaveCondition"
                largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/EditingSaveEdits_B_32.png"
                smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/EditingSaveEdits_B_16.png"
                className="esri_editing_EditingModule:OnClick_SaveEdits" >
          <tooltip heading="Save Edits">
            Save all edits made since the last save.  After saving, you cannot undo previous editing operations.<disabledText></disabledText>
          </tooltip>

 

So now the save should work as it is and I should also able to capture and use those editable changes?

 

Any help? 

@Wolf  @UmaHarano  @GKmieliauskas 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
GKmieliauskas
Esri Regular Contributor
0 Kudos
3 Replies
GKmieliauskas
Esri Regular Contributor

Hi,

Look at the Esri community sdk ModifyNewlyAddedFeatures sample. You need to listen editing events. And there is no need for Save button in your daml.

More info about editing events here:

https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Editing#row-events 

newbiedotnetguy
Emerging Contributor

These are editing events but I need to capture the click event of Save button in the Edit tab with the edit changes.

@GKmieliauskas 

0 Kudos
GKmieliauskas
Esri Regular Contributor
0 Kudos