<?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: Edit feature attributes with text box in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-feature-attributes-with-text-box/m-p/148175#M13815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you show us your codes so that we could see what you have tried so far?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Nov 2016 21:43:58 GMT</pubDate>
    <dc:creator>SarojThapa1</dc:creator>
    <dc:date>2016-11-11T21:43:58Z</dc:date>
    <item>
      <title>Edit feature attributes with text box</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-feature-attributes-with-text-box/m-p/148174#M13814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to edit existing features in a feature service from JavaScript without making a user click on or draw a feature, to avoid the popup experience. &amp;nbsp;Has anyone ever committed edits from a text/dropdown box on a web page instead of with the edit widget, and do you have a code sample if so?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 21:38:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-feature-attributes-with-text-box/m-p/148174#M13814</guid>
      <dc:creator>LindaDunklee</dc:creator>
      <dc:date>2016-11-11T21:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: Edit feature attributes with text box</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-feature-attributes-with-text-box/m-p/148175#M13815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you show us your codes so that we could see what you have tried so far?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 21:43:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-feature-attributes-with-text-box/m-p/148175#M13815</guid>
      <dc:creator>SarojThapa1</dc:creator>
      <dc:date>2016-11-11T21:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Edit feature attributes with text box</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-feature-attributes-with-text-box/m-p/148176#M13816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Linda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I do editing often not using the edit widget or attribute inspector. I use FeatureLayer.applyEdits method:&lt;/P&gt;&lt;P&gt;&lt;A class="jivelink11" href="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#applyedits" title="https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#applyedits" rel="nofollow noopener noreferrer" target="_blank"&gt;https://developers.arcgis.com/javascript/3/jsapi/featurelayer-amd.html#applyedits&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I don't have code I can share though as it is a large project that has to do with sensitive secure data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you can see from the link though you just pass an array of updated graphics to the applyEdits method. If you are just updating attributes then you would&amp;nbsp;just:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;targetGraphic&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;attributes&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"some attrib name"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; x&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
firePerimeterFL&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;applyEdits&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;targetGraphic&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 08:02:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-feature-attributes-with-text-box/m-p/148176#M13816</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-11T08:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Edit feature attributes with text box</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-feature-attributes-with-text-box/m-p/148177#M13817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert, that worked beautifully! &amp;nbsp;A note to anyone else who tries this method on a query result, it won't work if the OBJECTID field is not included in the query output results. &amp;nbsp;Once I included that there were no issues and the edits committed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 16:13:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-feature-attributes-with-text-box/m-p/148177#M13817</guid>
      <dc:creator>LindaDunklee</dc:creator>
      <dc:date>2016-11-14T16:13:24Z</dc:date>
    </item>
  </channel>
</rss>

