<?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: How to cancel graphic change like Reshape,cut, union and editVertix? in ArcGIS API for Silverlight Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464731#M11997</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to accept the change in geometry caused by Cut/Reshape/Union/EditVertices, you can explicitly call SaveEdits(). Otherwise to revert back to the old geometry, the only way is to call FeatureLayer.Update().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option is to use v2.1 RTM.&amp;nbsp; Like I said in my previous post, CancelActive command will also cancel edits made by EditVertices command if it were the active command and the changes were not yet commited.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, Cut/Reshape/Union does not cancel their edit with CancelActive command even with v2.1 RTM.&amp;nbsp; The reason is because, the GeometryService call performs this change instantaneously; unlike EditVertices where you have to click back on the feature to finalize the edit.&amp;nbsp; For this case, I would advise to do the first approach.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Nov 2010 23:01:46 GMT</pubDate>
    <dc:creator>JenniferNery</dc:creator>
    <dc:date>2010-11-17T23:01:46Z</dc:date>
    <item>
      <title>How to cancel graphic change like Reshape,cut, union and editVertix?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464726#M11992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my arcGIS API 2 for siliverlight application which uses ArcGIS server 10 services, I use editing tool to add new, edit graphics like Reshape,cut, union and editVertix. I need a tool/function to cancel the current change from one of those actions. How to do that? please help!! Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 21:49:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464726#M11992</guid>
      <dc:creator>XiujuZhou</dc:creator>
      <dc:date>2010-11-16T21:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel graphic change like Reshape,cut, union and editVertix?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464727#M11993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you will be using v2.1, executing CancelActive command of the Editor will undo changes made by the EditVertices command if it were the current active command.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Reshape, Cut and Union, however are done through GeometryService and are committed right away if you have AutoSave=true.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suggest setting AutoSave=false, listen to Editor's EditCompleted event and see if the EditAction is Reshape/Cut/Union/EditVertices. You will have access to the Graphic that was modified and the layer it belongs to at this point. Therefore you can check whether this is the desired geometry change, before committing the changes to your server by calling layer.SaveEdits().&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 23:08:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464727#M11993</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-16T23:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel graphic change like Reshape,cut, union and editVertix?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464728#M11994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jannifer, thanks for your help. AutoSave is set for my featureLayer. When calling editor's EditCompleted event, the graphic is saved already. I cannot stop save by writing any code in it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 17:55:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464728#M11994</guid>
      <dc:creator>XiujuZhou</dc:creator>
      <dc:date>2010-11-17T17:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel graphic change like Reshape,cut, union and editVertix?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464729#M11995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yup, that is why I suggested in making AutoSave to false and just explicitly call SaveEdits() &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~SaveEdits.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~SaveEdits.html&lt;/A&gt;&lt;SPAN&gt; when the geometry change seem correct &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should give you a chance to undo or cancel the changes in the Editor's EditCompleted event.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 20:33:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464729#M11995</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-17T20:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel graphic change like Reshape,cut, union and editVertix?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464730#M11996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry I didn't explained clearly. what I tried to tell is that, I have set AutoSave to False to my feature layer. When calling Editor's editCompleted, the graphic is changed on&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;screen already, even though I have not saved it to feature Layer yet by running MyFeatureLayer.saveEdit. Which means, I think, the change is saved to a graphic layer or somewhere in memory at the moment of calling Editor's editCompleted, until run MyFeatureLayer.saveEdit, the change is going to save to feature layer from graphic layer or somewhere. How to make this change to be back to the original on the screen? I don't want to reload the feature layer by calling myFeatureLayer.update() to see the original one, otherwise, all changes to other features are going to be lost.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yup, that is why I suggested in making AutoSave to false and just explicitly call SaveEdits() &lt;A href="http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~SaveEdits.html"&gt;http://help.arcgis.com/en/webapi/silverlight/apiref/ESRI.ArcGIS.Client~ESRI.ArcGIS.Client.FeatureLayer~SaveEdits.html&lt;/A&gt; when the geometry change seem correct &lt;span class="lia-unicode-emoji" title=":face_with_tongue:"&gt;😛&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;This should give you a chance to undo or cancel the changes in the Editor's EditCompleted event.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 21:57:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464730#M11996</guid>
      <dc:creator>XiujuZhou</dc:creator>
      <dc:date>2010-11-17T21:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel graphic change like Reshape,cut, union and editVertix?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464731#M11997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to accept the change in geometry caused by Cut/Reshape/Union/EditVertices, you can explicitly call SaveEdits(). Otherwise to revert back to the old geometry, the only way is to call FeatureLayer.Update().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another option is to use v2.1 RTM.&amp;nbsp; Like I said in my previous post, CancelActive command will also cancel edits made by EditVertices command if it were the active command and the changes were not yet commited.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, Cut/Reshape/Union does not cancel their edit with CancelActive command even with v2.1 RTM.&amp;nbsp; The reason is because, the GeometryService call performs this change instantaneously; unlike EditVertices where you have to click back on the feature to finalize the edit.&amp;nbsp; For this case, I would advise to do the first approach.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 23:01:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464731#M11997</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-17T23:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel graphic change like Reshape,cut, union and editVertix?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464732#M11998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the problem is the graphic change is showing on the screen right after user's action and before save to feature layer by calling SaveEdits().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If you want to accept the change in geometry caused by Cut/Reshape/Union/EditVertices, you can explicitly call SaveEdits(). Otherwise to revert back to the old geometry, the only way is to call FeatureLayer.Update().&lt;BR /&gt;&lt;BR /&gt;Another option is to use v2.1 RTM.&amp;nbsp; Like I said in my previous post, CancelActive command will also cancel edits made by EditVertices command if it were the active command and the changes were not yet commited.&amp;nbsp; &lt;BR /&gt;&lt;BR /&gt;However, Cut/Reshape/Union does not cancel their edit with CancelActive command even with v2.1 RTM.&amp;nbsp; The reason is because, the GeometryService call performs this change instantaneously; unlike EditVertices where you have to click back on the feature to finalize the edit.&amp;nbsp; For this case, I would advise to do the first approach.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 14:01:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464732#M11998</guid>
      <dc:creator>XiujuZhou</dc:creator>
      <dc:date>2010-11-18T14:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel graphic change like Reshape,cut, union and editVertix?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464733#M11999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;While EditVertices is active, the edits on the graphic will show until you finalize the edit and call layer.Update() in EditCompleted event to retrieve the original graphic. To save the changes, you will not need to call layer.Update() but instead call layer.EndSaveEdits().&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Nov 2010 16:03:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-silverlight-questions/how-to-cancel-graphic-change-like-reshape-cut/m-p/464733#M11999</guid>
      <dc:creator>JenniferNery</dc:creator>
      <dc:date>2010-11-18T16:03:54Z</dc:date>
    </item>
  </channel>
</rss>

