<?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: I need to capture the information of a popUp when I select a point on the map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-capture-the-information-of-a-popup-when/m-p/1155263#M76701</link>
    <description>&lt;P&gt;You don't need to listen to any events, you can watch for the popup.selectedFeature property to change&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.popup.watch("selectedFeature", (feature) =&amp;gt; {
    // do something
})&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 18 Mar 2022 15:37:06 GMT</pubDate>
    <dc:creator>ReneRubalcava</dc:creator>
    <dc:date>2022-03-18T15:37:06Z</dc:date>
    <item>
      <title>I need to capture the information of a popUp when I select a point on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-capture-the-information-of-a-popup-when/m-p/1155260#M76700</link>
      <description>&lt;P&gt;&lt;SPAN&gt;When I select a point on the map, a popup window opens that shows information, but I need to capture that information that the popUp shows&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Reading the documentation of arcgis javaScript I found this method, but it does not work for me to obtain the popUp data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;      view.on("click", function (event) {
    view.hitTest(event).then(function (response) {
      if (response.results.length) {
        let graphic = response.results.filter(function (result) {
          // check if the graphic belongs to the layer of interest
          return result.graphic.layer;
        })[0].graphic;

        // do something with the result graphic
        console.log(graphic.attributes);
      }
    });
  });&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 15:53:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-capture-the-information-of-a-popup-when/m-p/1155260#M76700</guid>
      <dc:creator>stiven</dc:creator>
      <dc:date>2022-03-18T15:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: I need to capture the information of a popUp when I select a point on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-capture-the-information-of-a-popup-when/m-p/1155263#M76701</link>
      <description>&lt;P&gt;You don't need to listen to any events, you can watch for the popup.selectedFeature property to change&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#selectedFeature&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;view.popup.watch("selectedFeature", (feature) =&amp;gt; {
    // do something
})&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Mar 2022 15:37:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-capture-the-information-of-a-popup-when/m-p/1155263#M76701</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2022-03-18T15:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: I need to capture the information of a popUp when I select a point on the map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-capture-the-information-of-a-popup-when/m-p/1155276#M76703</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for your help, it helped me&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Mar 2022 15:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/i-need-to-capture-the-information-of-a-popup-when/m-p/1155276#M76703</guid>
      <dc:creator>stiven</dc:creator>
      <dc:date>2022-03-18T15:52:38Z</dc:date>
    </item>
  </channel>
</rss>

