<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Chaining edit operations in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/chaining-edit-operations/m-p/713767#M65</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;With a regular edit operation you create or modify as many features you wish and still have one edit entry on the stack.&lt;/P&gt;&lt;P&gt;The chained edit operation is used when you need the results of an edit to make further edits but still only want one entry on the stack. The example you typically see is creating a feature and adding an attachment in one operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Events are limited. EditCompletedEvent fires after an operation. At that point the edit is done and you cant change it or combine with it.&lt;/P&gt;&lt;P&gt;You can listen to the row events (RowChangedEvent, RowCreatedEvent, RowDeletedEvent) which occur during the edit. You can modify the row, cancel the edit or do any number of crazy things here, which will be included in the current operation. Note that GP tools generally don't fire row events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whats your workflow with ArcObjects and what are you trying to accomplish?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 May 2017 18:18:13 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2017-05-16T18:18:13Z</dc:date>
    <item>
      <title>Chaining edit operations</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/chaining-edit-operations/m-p/713766#M64</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using ArcPro SDK 2.0 beta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see in the &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Editing"&gt;Chain Edit Operations&lt;/A&gt;&amp;nbsp;sample, we can roll multiple edit operations into one entry in the Undo stack by creating&amp;nbsp;two custom operations. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to get the current edit operation from an out-of-box edit before chaining&amp;nbsp;one or more custom operations to it?(Similar to how&amp;nbsp;the BeforeStopOperation event in ArcObjects functions.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 16:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/chaining-edit-operations/m-p/713766#M64</guid>
      <dc:creator>JeffMatson</dc:creator>
      <dc:date>2017-05-16T16:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Chaining edit operations</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/chaining-edit-operations/m-p/713767#M65</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jeff,&lt;/P&gt;&lt;P&gt;With a regular edit operation you create or modify as many features you wish and still have one edit entry on the stack.&lt;/P&gt;&lt;P&gt;The chained edit operation is used when you need the results of an edit to make further edits but still only want one entry on the stack. The example you typically see is creating a feature and adding an attachment in one operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Events are limited. EditCompletedEvent fires after an operation. At that point the edit is done and you cant change it or combine with it.&lt;/P&gt;&lt;P&gt;You can listen to the row events (RowChangedEvent, RowCreatedEvent, RowDeletedEvent) which occur during the edit. You can modify the row, cancel the edit or do any number of crazy things here, which will be included in the current operation. Note that GP tools generally don't fire row events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whats your workflow with ArcObjects and what are you trying to accomplish?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 18:18:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/chaining-edit-operations/m-p/713767#M65</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-05-16T18:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Chaining edit operations</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/chaining-edit-operations/m-p/713768#M66</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sean,&lt;BR /&gt;Thanks for the reply. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;With a regular edit operation you create or modify as many features you wish and still have one edit entry on the stack.&lt;/P&gt;&lt;P&gt;The chained edit operation is used when you need the results of an edit to make further edits but still only want one entry on the stack. The example you typically see is creating a feature and adding an attachment in one operation.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Understood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Events are limited. EditCompletedEvent fires after an operation. At that point the edit is done and you cant change it or combine with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;That was my assumption, thanks for confirming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;Whats your workflow with ArcObjects and what are you trying to accomplish?&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Several of our current ArcMap extensions use BeforeStopOperation to see what type of operation is being done, and/or in which&amp;nbsp;feature layer the feature resides, before sending some of the edited feature's attribute information off to functions that update non-spatial tables (basically recording edit history, sources, etc.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds like&amp;nbsp;there are two main options to accomplish this in Pro?&lt;/P&gt;&lt;P&gt;1) &amp;nbsp;Write customized editing tools which create their own create/update/delete operations and utilize chaining.&lt;/P&gt;&lt;P&gt;2) &amp;nbsp;Leverage&amp;nbsp;the out-of-box editing tools by subscribing to the three row&amp;nbsp;level events for each feature layer, and handle accordingly inside those events (likely all pointing to the same function).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 20:17:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/chaining-edit-operations/m-p/713768#M66</guid>
      <dc:creator>JeffMatson</dc:creator>
      <dc:date>2017-05-16T20:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Chaining edit operations</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/chaining-edit-operations/m-p/713769#M67</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeff,&lt;/P&gt;&lt;P&gt;Using the three row events would be the best bet. If the tables you are updating are within the same workspace, the edits will piggyback on the current operation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 00:11:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/chaining-edit-operations/m-p/713769#M67</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2017-05-18T00:11:02Z</dc:date>
    </item>
  </channel>
</rss>

