<?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: Open Popup after adding client-side feature in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-popup-after-adding-client-side-feature/m-p/1385602#M83717</link>
    <description>&lt;P&gt;Thanks, that got me on the right path and my misunderstanding of the popupTemplate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 18:15:10 GMT</pubDate>
    <dc:creator>DavinShokes1</dc:creator>
    <dc:date>2024-02-22T18:15:10Z</dc:date>
    <item>
      <title>Open Popup after adding client-side feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-popup-after-adding-client-side-feature/m-p/1384895#M83697</link>
      <description>&lt;P&gt;In my app:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The user searches for an address&lt;/LI&gt;&lt;LI&gt;A graphic is created for the search result&lt;/LI&gt;&lt;LI&gt;External API request data is added to graphic attributes&lt;/LI&gt;&lt;LI&gt;The graphic is added to a client side feature layer&lt;/LI&gt;&lt;LI&gt;The popup can be opened by clicking the new feature. However,&lt;/LI&gt;&lt;LI&gt;I'm trying to programmatically update/replace the existing popup with the popup for the new feature (Around line 283-316).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I can't figure out the correct code to show the popup. I've tried the advice from&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryFeatures" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryFeatures&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#querying" target="_self"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#querying&lt;/A&gt;&amp;nbsp;but I don't think I'm making the correct function.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice? Thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 18:15:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-popup-after-adding-client-side-feature/m-p/1384895#M83697</guid>
      <dc:creator>DavinShokes1</dc:creator>
      <dc:date>2024-02-22T18:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Open Popup after adding client-side feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-popup-after-adding-client-side-feature/m-p/1385110#M83703</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/147148"&gt;@DavinShokes1&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;You could try passing in the graphic that is added to the feature layer to the features property in the MapView's &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#openPopup" target="_self"&gt;openPopup()&lt;/A&gt; method after the query/external API call completes. Here's a simple example showing how to use that property:&amp;nbsp;&lt;A href="https://codepen.io/laurenb14/pen/ZEPNpXG?editors=1000" target="_blank"&gt;https://codepen.io/laurenb14/pen/ZEPNpXG?editors=1000&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll have to make sure the MapView &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#popupEnabled" target="_self"&gt;popupEnabled&lt;/A&gt; property is set to false to manually open the popup as well.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Feb 2024 20:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-popup-after-adding-client-side-feature/m-p/1385110#M83703</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2024-02-21T20:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Open Popup after adding client-side feature</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-popup-after-adding-client-side-feature/m-p/1385602#M83717</link>
      <description>&lt;P&gt;Thanks, that got me on the right path and my misunderstanding of the popupTemplate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 18:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/open-popup-after-adding-client-side-feature/m-p/1385602#M83717</guid>
      <dc:creator>DavinShokes1</dc:creator>
      <dc:date>2024-02-22T18:15:10Z</dc:date>
    </item>
  </channel>
</rss>

