<?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 Nothing appears on the pop up!! in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/nothing-appears-on-the-pop-up/m-p/1243282#M79704</link>
    <description>&lt;P&gt;Hello everybody, i'm newbie on JS for arcgis. I'm trying to query by the search default widget, intersecting the result to a feature layer and get few attributes in the pop up.&lt;/P&gt;&lt;P&gt;I think I see the goal but nothing appears on my pop up. I got results but even the title doesn't appear!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KARIMLABIDI_0-1671707918945.png" style="width: 632px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59154i1A15E8FE6088B9AA/image-dimensions/632x282?v=v2" width="632" height="282" role="button" title="KARIMLABIDI_0-1671707918945.png" alt="KARIMLABIDI_0-1671707918945.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there something wrong on my code? Do I have to use a poptemplate?&lt;/P&gt;&lt;P&gt;I need some help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 11:22:12 GMT</pubDate>
    <dc:creator>KARIMLABIDI</dc:creator>
    <dc:date>2022-12-22T11:22:12Z</dc:date>
    <item>
      <title>Nothing appears on the pop up!!</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/nothing-appears-on-the-pop-up/m-p/1243282#M79704</link>
      <description>&lt;P&gt;Hello everybody, i'm newbie on JS for arcgis. I'm trying to query by the search default widget, intersecting the result to a feature layer and get few attributes in the pop up.&lt;/P&gt;&lt;P&gt;I think I see the goal but nothing appears on my pop up. I got results but even the title doesn't appear!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="KARIMLABIDI_0-1671707918945.png" style="width: 632px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/59154i1A15E8FE6088B9AA/image-dimensions/632x282?v=v2" width="632" height="282" role="button" title="KARIMLABIDI_0-1671707918945.png" alt="KARIMLABIDI_0-1671707918945.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there something wrong on my code? Do I have to use a poptemplate?&lt;/P&gt;&lt;P&gt;I need some help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 11:22:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/nothing-appears-on-the-pop-up/m-p/1243282#M79704</guid>
      <dc:creator>KARIMLABIDI</dc:creator>
      <dc:date>2022-12-22T11:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: Nothing appears on the pop up!!</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/nothing-appears-on-the-pop-up/m-p/1243365#M79707</link>
      <description>&lt;P&gt;The documentation for &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#open" target="_self"&gt;view.open&lt;/A&gt; indicates that when the "features" property is set, it will use their popupTemplates to render the content of the popup.&amp;nbsp; Therefore, I believe this is why your title and content are ignored.&lt;/P&gt;&lt;P&gt;I think the solution would go&amp;nbsp;something like this:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;featureLayer.queryFeatures(query).then(function(results) {
	results.features.forEach(function(graphic) {
		graphic.popupTemplate = {title:"Test",content:"{type_lieu}"};
	});

	view.popup.open({
		features: results.features,
		location: evt.result.feature.geometry.centroid
	});
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 17:14:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/nothing-appears-on-the-pop-up/m-p/1243365#M79707</guid>
      <dc:creator>JoelBennett</dc:creator>
      <dc:date>2022-12-22T17:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Nothing appears on the pop up!!</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/nothing-appears-on-the-pop-up/m-p/1243377#M79710</link>
      <description>&lt;P&gt;Yes it works!! Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6522"&gt;@JoelBennett&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 17:53:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/nothing-appears-on-the-pop-up/m-p/1243377#M79710</guid>
      <dc:creator>KARIMLABIDI</dc:creator>
      <dc:date>2022-12-22T17:53:52Z</dc:date>
    </item>
  </channel>
</rss>

