<?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 copy feature from one layer to another in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/copy-feature-from-one-layer-to-another/m-p/200048#M18519</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two feature&amp;nbsp; layers layer1 &amp;amp; layer2. I want to copy a feature from layer1 to layer2&amp;nbsp; and chnage its attributes as per layer2. I had already created a graphic from layer1. Layer2 is published as&amp;nbsp; Featureservice.&amp;nbsp; What I am trying to do is select the feature from Layer1 as graphic, and trying to do ApplyEdit (graphic to Layer2) is this the right way? But it fails. I meanLayer2 is not updated in the Geodatabase. I am using the following code to make the edits,&amp;nbsp; as suggestion from ArcGIS javascript forum Girish Yadav.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;var newFeature = new Graphic(graphic.toJson());&lt;/P&gt;&lt;P style="text-align: justify;"&gt;featureLayer.applyEdits([newFeature], null, null) The&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Environement : Javascript API 3.16 ArcGIS Server 10.0 ArcSDE GeoDatabase 9.2 Oracle database 10.2.0.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jun 2016 07:14:25 GMT</pubDate>
    <dc:creator>cadgism</dc:creator>
    <dc:date>2016-06-19T07:14:25Z</dc:date>
    <item>
      <title>copy feature from one layer to another</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/copy-feature-from-one-layer-to-another/m-p/200048#M18519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two feature&amp;nbsp; layers layer1 &amp;amp; layer2. I want to copy a feature from layer1 to layer2&amp;nbsp; and chnage its attributes as per layer2. I had already created a graphic from layer1. Layer2 is published as&amp;nbsp; Featureservice.&amp;nbsp; What I am trying to do is select the feature from Layer1 as graphic, and trying to do ApplyEdit (graphic to Layer2) is this the right way? But it fails. I meanLayer2 is not updated in the Geodatabase. I am using the following code to make the edits,&amp;nbsp; as suggestion from ArcGIS javascript forum Girish Yadav.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: justify;"&gt;var newFeature = new Graphic(graphic.toJson());&lt;/P&gt;&lt;P style="text-align: justify;"&gt;featureLayer.applyEdits([newFeature], null, null) The&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Environement : Javascript API 3.16 ArcGIS Server 10.0 ArcSDE GeoDatabase 9.2 Oracle database 10.2.0.3&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 07:14:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/copy-feature-from-one-layer-to-another/m-p/200048#M18519</guid>
      <dc:creator>cadgism</dc:creator>
      <dc:date>2016-06-19T07:14:25Z</dc:date>
    </item>
  </channel>
</rss>

