<?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 attributes in popup in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-attributes-in-popup/m-p/718074#M66684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Thomas,&lt;/P&gt;&lt;P&gt;Do I need to set query for each of the attributes separately as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Jun 2017 05:11:14 GMT</pubDate>
    <dc:creator>NedaPeiravian</dc:creator>
    <dc:date>2017-06-04T05:11:14Z</dc:date>
    <item>
      <title>Edit attributes in popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-attributes-in-popup/m-p/718070#M66680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I am trying to edit existing features in the popup. I put a button in the popup for users to be able to edit and update attributes in the popup fields and save them.&amp;nbsp;I have used FeatureLayer.applyEdits()&amp;nbsp;&lt;SPAN style="color: #4c4c4c;"&gt;&amp;nbsp;sample code but it seems my function have some problems. &lt;SPAN style="color: #333333; background-color: #ffffff;"&gt; I would appreciate any help. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 01:35:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-attributes-in-popup/m-p/718070#M66680</guid>
      <dc:creator>NedaPeiravian</dc:creator>
      <dc:date>2017-06-02T01:35:17Z</dc:date>
    </item>
    <item>
      <title>Re: Edit attributes in popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-attributes-in-popup/m-p/718071#M66681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I also have this question that based on the functionality matrix, version 4.3 &amp;nbsp;doesn't have AttributeInspector and&amp;nbsp;FeatureEditResult, so can I make my popup editable at all? or it is better to make the expand and use&amp;nbsp;applyEdits for editing features?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 21:20:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-attributes-in-popup/m-p/718071#M66681</guid>
      <dc:creator>NedaPeiravian</dc:creator>
      <dc:date>2017-06-02T21:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Edit attributes in popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-attributes-in-popup/m-p/718072#M66682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Neda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;As those dijits/widgets are yet to come you need to choose the correct API version for your needs. Until the 4.x API becomes mature and contains the AttributeInspector you may have to continue to use the 3.x API.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/guide/choose-version/index.html" title="https://developers.arcgis.com/javascript/latest/guide/choose-version/index.html"&gt;Choose between version 3.20 and 4.2 | ArcGIS API for JavaScript 4.3&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 00:46:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-attributes-in-popup/m-p/718072#M66682</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-06-04T00:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Edit attributes in popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-attributes-in-popup/m-p/718073#M66683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can absolutely hand code this yourself, but you're going to need to have logic for showing inputs/hiding text when the edit button is clicked and extracting the user input information from the inputs.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 03:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-attributes-in-popup/m-p/718073#M66683</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-06-04T03:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Edit attributes in popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-attributes-in-popup/m-p/718074#M66684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Thomas,&lt;/P&gt;&lt;P&gt;Do I need to set query for each of the attributes separately as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 05:11:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-attributes-in-popup/m-p/718074#M66684</guid>
      <dc:creator>NedaPeiravian</dc:creator>
      <dc:date>2017-06-04T05:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: Edit attributes in popup</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-attributes-in-popup/m-p/718075#M66685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure what you mean. &amp;nbsp;All the attribute data should be in the client if outFields is specified in the feature layer constructor. &amp;nbsp;You don't actually have to use query at all: you can just change the attributes in the client and then call featureLayer.applyEdits({updates:[graphic]}).then(response =&amp;gt; console.log(response));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you're doing this in the popup window, you have access to a reference to the graphic in&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;popup.viewModel.selectedFeature&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2017 15:54:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/edit-attributes-in-popup/m-p/718075#M66685</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-06-04T15:54:38Z</dc:date>
    </item>
  </channel>
</rss>

