<?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: FeatureLayer On Edits in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-on-edits/m-p/1323853#M82108</link>
    <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/428228"&gt;@joe&lt;/a&gt;! I learned something new about JS. That worked perfectly. I appreciate you responding.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Aug 2023 12:10:07 GMT</pubDate>
    <dc:creator>RobertBossio</dc:creator>
    <dc:date>2023-08-30T12:10:07Z</dc:date>
    <item>
      <title>FeatureLayer On Edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-on-edits/m-p/1323636#M82101</link>
      <description>&lt;P&gt;I'm setting up an event listener for Edits events on a FeatureLayer. When the even is trigged, we have access to the edits that were completed, but we don't get a reference to the layer the edits were applied to. If you have multiple layers on the map, is there a way to determine what layer the edits were applied to?&lt;/P&gt;&lt;P&gt;Or, is there a better way to identify when edits are complete on a layer?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;layer.on('edits', (result) =&amp;gt; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;console.error(result); //result has edits, but can't reference the layer the edits were applied to&lt;BR /&gt;});&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 19:16:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-on-edits/m-p/1323636#M82101</guid>
      <dc:creator>RobertBossio</dc:creator>
      <dc:date>2023-08-29T19:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer On Edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-on-edits/m-p/1323715#M82103</link>
      <description>&lt;P&gt;You can use &lt;A href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_objects/Function/bind" target="_self"&gt;bind&lt;/A&gt; to pass a reference to the layer into your handler:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;layer.on("edits", function(editLayer, result) {
	alert(editLayer.id + " :: " + editLayer.title + " :: " + editLayer.type);
}.bind(this, layer));&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2023 23:31:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-on-edits/m-p/1323715#M82103</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2023-08-29T23:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: FeatureLayer On Edits</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-on-edits/m-p/1323853#M82108</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/428228"&gt;@joe&lt;/a&gt;! I learned something new about JS. That worked perfectly. I appreciate you responding.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Aug 2023 12:10:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/featurelayer-on-edits/m-p/1323853#M82108</guid>
      <dc:creator>RobertBossio</dc:creator>
      <dc:date>2023-08-30T12:10:07Z</dc:date>
    </item>
  </channel>
</rss>

