<?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 [Bug Report] Attributes lost in Editor/CreateWorkFlow in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-report-attributes-lost-in-editor/m-p/1071828#M73607</link>
    <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just encounter some problem when using Editor widget for feature creation, and i think it can be a bug in CreateWorkFlow.js file. The problem is when i edit the attribute in featureForm, and then edit the geometry again on the map, all my attributes can be lost.&lt;/P&gt;&lt;P&gt;I notice that u copy the attributes to a same instance by mistake. The purpose must be sync the attributes from featureFormViewModel to sketchViewModel.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;a.viewModel.featureFormViewModel.on(&lt;SPAN&gt;"value-change"&lt;/SPAN&gt;, () =&amp;gt; {&lt;BR /&gt;  a.edits.updateAttributes(&lt;BR /&gt;    a.viewModel.featureFormViewModel.getValues()&lt;BR /&gt;  );&lt;BR /&gt;  &lt;FONT color="#FF0000"&gt;b.attributes = a.edits.feature.attributes;&lt;/FONT&gt;&lt;BR /&gt;})&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Jun 2021 03:09:57 GMT</pubDate>
    <dc:creator>Aiooioo</dc:creator>
    <dc:date>2021-06-24T03:09:57Z</dc:date>
    <item>
      <title>[Bug Report] Attributes lost in Editor/CreateWorkFlow</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-report-attributes-lost-in-editor/m-p/1071828#M73607</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just encounter some problem when using Editor widget for feature creation, and i think it can be a bug in CreateWorkFlow.js file. The problem is when i edit the attribute in featureForm, and then edit the geometry again on the map, all my attributes can be lost.&lt;/P&gt;&lt;P&gt;I notice that u copy the attributes to a same instance by mistake. The purpose must be sync the attributes from featureFormViewModel to sketchViewModel.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;a.viewModel.featureFormViewModel.on(&lt;SPAN&gt;"value-change"&lt;/SPAN&gt;, () =&amp;gt; {&lt;BR /&gt;  a.edits.updateAttributes(&lt;BR /&gt;    a.viewModel.featureFormViewModel.getValues()&lt;BR /&gt;  );&lt;BR /&gt;  &lt;FONT color="#FF0000"&gt;b.attributes = a.edits.feature.attributes;&lt;/FONT&gt;&lt;BR /&gt;})&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 03:09:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/bug-report-attributes-lost-in-editor/m-p/1071828#M73607</guid>
      <dc:creator>Aiooioo</dc:creator>
      <dc:date>2021-06-24T03:09:57Z</dc:date>
    </item>
  </channel>
</rss>

