<?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 JS API 4.0 - How to call a script within a popup template in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-0-how-to-call-a-script-within-a-popup/m-p/571726#M53355</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm using the JavaScript API 4.0 and Angular2 and would like to achieve the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- When opening the popup / popupTemplate of a featureLayer, I would like to consume&amp;nbsp;a&amp;nbsp;webservice and get additional information of the selected feature.&lt;/P&gt;&lt;P&gt;So far, I used a custom action and displayed the result in a sidebar. But I would prefer to show the information within the popup templates content and load them without having to click the action button first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2016 18:41:33 GMT</pubDate>
    <dc:creator>KevinHaeni</dc:creator>
    <dc:date>2016-09-13T18:41:33Z</dc:date>
    <item>
      <title>JS API 4.0 - How to call a script within a popup template</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-0-how-to-call-a-script-within-a-popup/m-p/571726#M53355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm using the JavaScript API 4.0 and Angular2 and would like to achieve the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- When opening the popup / popupTemplate of a featureLayer, I would like to consume&amp;nbsp;a&amp;nbsp;webservice and get additional information of the selected feature.&lt;/P&gt;&lt;P&gt;So far, I used a custom action and displayed the result in a sidebar. But I would prefer to show the information within the popup templates content and load them without having to click the action button first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 18:41:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/js-api-4-0-how-to-call-a-script-within-a-popup/m-p/571726#M53355</guid>
      <dc:creator>KevinHaeni</dc:creator>
      <dc:date>2016-09-13T18:41:33Z</dc:date>
    </item>
  </channel>
</rss>

