<?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 Prevent ApplyEdits using editor widget in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157405#M14696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to prevent the editor Widget from adding a new feature to a FeatureLayer when a certain condition is not meet using the before-apply-edits event. But so far I can not figure out how to cancel/prevent the ApplyEdits from going through. Does anyone have any insight on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Mar 2016 18:13:09 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-03-16T18:13:09Z</dc:date>
    <item>
      <title>Prevent ApplyEdits using editor widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157405#M14696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to prevent the editor Widget from adding a new feature to a FeatureLayer when a certain condition is not meet using the before-apply-edits event. But so far I can not figure out how to cancel/prevent the ApplyEdits from going through. Does anyone have any insight on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2016 18:13:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157405#M14696</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-03-16T18:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent ApplyEdits using editor widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157406#M14697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try attaching "&lt;A href="https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html#event-before-apply-edits"&gt;before-apply-edits&lt;/A&gt;" event on FeatureLayer which you are trying to edit using Edit Widget and take decision which features have to be added/updated/deleted and then remove/update the graphic objects of the event callback arrays and see if it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this "before-apply-edits" call back, if you do not want to progress with the edits, then you need to raise any exception something like "throw new Error("Edits are not required");"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vara Prasad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 06:42:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157406#M14697</guid>
      <dc:creator>Vara_PrasadM_S</dc:creator>
      <dc:date>2016-03-17T06:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent ApplyEdits using editor widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157407#M14698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got some time to implement and check my idea mentioned above. Unfortunately, it did not work. I got below useful link. Please have a look at it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://gis.stackexchange.com/questions/150606/prevent-editor-widget-auto-save" title="http://gis.stackexchange.com/questions/150606/prevent-editor-widget-auto-save"&gt;arcgis server - Prevent Editor Widget auto save - Geographic Information Systems Stack Exchange&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Vara Prasad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 09:09:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157407#M14698</guid>
      <dc:creator>Vara_PrasadM_S</dc:creator>
      <dc:date>2016-03-17T09:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent ApplyEdits using editor widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157408#M14699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vara, yep I had tried that and may other attempts as well and nothing I did prevented the feature from being added to the FL. I will look at the provided link to see if there is anything there. Thanks though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Mar 2016 12:00:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157408#M14699</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-03-17T12:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent ApplyEdits using editor widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157409#M14700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;I understand that this is an old thread, but I was wondering if you ever found a solution that does not require editing the applyEdits method.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 16:23:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157409#M14700</guid>
      <dc:creator>AbhinavSharma</dc:creator>
      <dc:date>2018-02-20T16:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent ApplyEdits using editor widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157410#M14701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately no.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 18:29:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157410#M14701</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2018-02-20T18:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent ApplyEdits using editor widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157411#M14702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ended up getting a cancel and apply button working by deep cloning the selected features (ie copying the original values) from before the edits, then if the user makes a change and it autosaves I have a clone of the original features still available should they choose to cancel. If they hit the cancel button I then use applyEdits again but this time pass the original features from the deep clone. Which essentially reverts the layer back to before the edit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 20:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157411#M14702</guid>
      <dc:creator>AbhinavSharma</dc:creator>
      <dc:date>2018-02-20T20:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent ApplyEdits using editor widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157412#M14703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I am&amp;nbsp;facing similar&amp;nbsp;problem. I have to use editor widget as part of my application, and once user draws a shape on the map, I need to calculate some field values using another geoprocessing task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could wait for original applyEdits task to finish, and then then calculate the new field values, and then applyEdits again ( and also putting a condition to stop recursion). This method does the job behind the scene, but doesn't show the calculated values in the popup window that comes after editing using editor widget.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has become a major bottleneck for our project.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 20:40:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157412#M14703</guid>
      <dc:creator>VIKRANTKRISHNA</dc:creator>
      <dc:date>2018-02-28T20:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent ApplyEdits using editor widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157413#M14704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you able to use the before-apply-edits event to make your changes and then applyEdits within that event?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 19:39:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157413#M14704</guid>
      <dc:creator>AbhinavSharma</dc:creator>
      <dc:date>2018-03-01T19:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent ApplyEdits using editor widget</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157414#M14705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I just used the edits-complete event of feature layer, capture the ObjectId of edited feature, query the feature layer for the updated feature, created a temporary feature layer and reapply edit. I could use the original feature layer to apply edits again, and some condition that it doesn't go in the infinite loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem I am facing is that popup window that shows up with the editor widget only shows edits from first applyEdit operation. I can't find a way to show second applyEdits results , without closing popup, refreshing layer and reopening popup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 15:52:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/prevent-applyedits-using-editor-widget/m-p/157414#M14705</guid>
      <dc:creator>VIKRANTKRISHNA</dc:creator>
      <dc:date>2018-03-02T15:52:02Z</dc:date>
    </item>
  </channel>
</rss>

