<?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 Get error on apply edits in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-error-on-apply-edits/m-p/1095836#M74573</link>
    <description>&lt;P&gt;on(dom.byId("savePol"), "click", sendToAmana);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function sendToAmana(){&lt;BR /&gt;var featureLayer = map.getLayer(map.graphicsLayerIds[1]);&lt;BR /&gt;var graphicLayer = featureLayer.graphics;&lt;BR /&gt;console.log(graphicLayer);&lt;/P&gt;&lt;P&gt;acceptanceAwaited.applyEdits([graphicLayer], null, null, saved1, gotError1);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function saved1(saved) {&lt;BR /&gt;if (saved) {&lt;/P&gt;&lt;P&gt;alert("Successfully submitted to Amana");&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function gotError1(error) {&lt;BR /&gt;if (error) {&lt;BR /&gt;alert("Somthing gone wrong");&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am passing an array of graphics to the feature layer , but the above code returns Error, Can anyone please tell me if something is wrong here.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 05:28:18 GMT</pubDate>
    <dc:creator>MuhammadFayaz</dc:creator>
    <dc:date>2021-09-07T05:28:18Z</dc:date>
    <item>
      <title>Get error on apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-error-on-apply-edits/m-p/1095836#M74573</link>
      <description>&lt;P&gt;on(dom.byId("savePol"), "click", sendToAmana);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;function sendToAmana(){&lt;BR /&gt;var featureLayer = map.getLayer(map.graphicsLayerIds[1]);&lt;BR /&gt;var graphicLayer = featureLayer.graphics;&lt;BR /&gt;console.log(graphicLayer);&lt;/P&gt;&lt;P&gt;acceptanceAwaited.applyEdits([graphicLayer], null, null, saved1, gotError1);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function saved1(saved) {&lt;BR /&gt;if (saved) {&lt;/P&gt;&lt;P&gt;alert("Successfully submitted to Amana");&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;function gotError1(error) {&lt;BR /&gt;if (error) {&lt;BR /&gt;alert("Somthing gone wrong");&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am passing an array of graphics to the feature layer , but the above code returns Error, Can anyone please tell me if something is wrong here.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 05:28:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-error-on-apply-edits/m-p/1095836#M74573</guid>
      <dc:creator>MuhammadFayaz</dc:creator>
      <dc:date>2021-09-07T05:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get error on apply edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-error-on-apply-edits/m-p/1096316#M74597</link>
      <description>&lt;P&gt;What is the error you're getting and where does it happen?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 12:15:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-error-on-apply-edits/m-p/1096316#M74597</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2021-09-08T12:15:19Z</dc:date>
    </item>
  </channel>
</rss>

