<?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 Is there any way to edit attributes on the client side of a hosted feature layer in the JS API 4.15 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-edit-attributes-on-the-client/m-p/554984#M51737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have made an app where a certain score is given to an area based on parameters. And to give the score to that area a calculation is made and the score has to written into the attribute table of the layer. That way i can edit the symbology of the area based on that score in the attribute table. But all of the ways to edit in the layer seem to update the layer itself. I want to do the edits in the client itself. Therefore no changes are made in the layer and when the page is reloaded the layer is reset. Is there a way to accomplish this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2020 07:31:50 GMT</pubDate>
    <dc:creator>GuusPutten</dc:creator>
    <dc:date>2020-05-28T07:31:50Z</dc:date>
    <item>
      <title>Is there any way to edit attributes on the client side of a hosted feature layer in the JS API 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-edit-attributes-on-the-client/m-p/554984#M51737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have made an app where a certain score is given to an area based on parameters. And to give the score to that area a calculation is made and the score has to written into the attribute table of the layer. That way i can edit the symbology of the area based on that score in the attribute table. But all of the ways to edit in the layer seem to update the layer itself. I want to do the edits in the client itself. Therefore no changes are made in the layer and when the page is reloaded the layer is reset. Is there a way to accomplish this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 07:31:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-edit-attributes-on-the-client/m-p/554984#M51737</guid>
      <dc:creator>GuusPutten</dc:creator>
      <dc:date>2020-05-28T07:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to edit attributes on the client side of a hosted feature layer in the JS API 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-edit-attributes-on-the-client/m-p/554985#M51738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Is it a vary large dataset? If it is not to large then you can create a client side feature layer using a a graphics source. Just use a queryTask to get the layers graphics.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#client-side" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#client-side"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#client-side&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This way it is an isolated client side copy of your layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2020 00:02:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-edit-attributes-on-the-client/m-p/554985#M51738</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-05-29T00:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to edit attributes on the client side of a hosted feature layer in the JS API 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-edit-attributes-on-the-client/m-p/554986#M51739</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;Thank you for your response, it is not a big dataset. It's only all the neighborhoods of a municipality. Around 100 features. I'm going to try your idea, thank you.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2020 08:15:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-edit-attributes-on-the-client/m-p/554986#M51739</guid>
      <dc:creator>GuusPutten</dc:creator>
      <dc:date>2020-06-02T08:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to edit attributes on the client side of a hosted feature layer in the JS API 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-edit-attributes-on-the-client/m-p/554987#M51740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert, it worked perfectly thank you very much. I am now struggling to edit the attribute table of the new layer. When I try to use the applyEdit() method I keep getting the error that the objectID identifier field is missing. But I transferred it to the new layer.&lt;/P&gt;&lt;P&gt;Here is some code, if you can take a look at it that would be amazing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"p" is&amp;nbsp; an integer that represents a objectid&lt;/P&gt;&lt;P&gt;"Score" is the field of "p" which i'm trying to edit&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;DIV style="color: #abb2bf; background-color: #282c34; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #abb2bf;"&gt;sectorenLayer.&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;applyEdits&lt;/SPAN&gt;&lt;SPAN style="color: #abb2bf;"&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #abb2bf;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;updateFeatures&lt;/SPAN&gt;&lt;SPAN style="color: #56b6c2;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #abb2bf;"&gt;&amp;nbsp;[{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #abb2bf;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;attributes&lt;/SPAN&gt;&lt;SPAN style="color: #56b6c2;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #abb2bf;"&gt;&amp;nbsp;{&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;ObjectID&lt;/SPAN&gt;&lt;SPAN style="color: #56b6c2;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #abb2bf;"&gt;&amp;nbsp;p,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #e06c75;"&gt;Score&lt;/SPAN&gt;&lt;SPAN style="color: #56b6c2;"&gt;:&lt;/SPAN&gt;&lt;SPAN style="color: #abb2bf;"&gt;&amp;nbsp;endScore}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #abb2bf;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}]&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #abb2bf;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}).&lt;/SPAN&gt;&lt;SPAN style="color: #61afef;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="color: #abb2bf;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #c678dd;"&gt;function&lt;/SPAN&gt;&lt;SPAN style="color: #abb2bf;"&gt;(response){&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #abb2bf;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #e5c07b;"&gt;console&lt;/SPAN&gt;&lt;SPAN style="color: #abb2bf;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #56b6c2;"&gt;log&lt;/SPAN&gt;&lt;SPAN style="color: #abb2bf;"&gt;(response)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #abb2bf;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;})&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 12:34:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-edit-attributes-on-the-client/m-p/554987#M51740</guid>
      <dc:creator>GuusPutten</dc:creator>
      <dc:date>2020-06-03T12:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to edit attributes on the client side of a hosted feature layer in the JS API 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-edit-attributes-on-the-client/m-p/554988#M51741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Normally you would get the feature (graphic) and update the attribute of Score and add that whole graphic to an array to pass to the updateFeatures method. They way you are attempting will not work (passing a simple object that has an attribute property).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2020 12:44:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/is-there-any-way-to-edit-attributes-on-the-client/m-p/554988#M51741</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-06-03T12:44:54Z</dc:date>
    </item>
  </channel>
</rss>

