<?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: PopupTemplate.content with method in 4.0 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180511#M16723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may not be able to do these things using PopupTemplate. But you can do it using the Popup widget. Popup widget is like a control which you can show when ever you want. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use the layer click event get the feature, build the content you want and then show it with Popup widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2016 18:39:05 GMT</pubDate>
    <dc:creator>thejuskambi</dc:creator>
    <dc:date>2016-05-13T18:39:05Z</dc:date>
    <item>
      <title>PopupTemplate.content with method in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180506#M16718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;with 3.x I used to be able to call a method whenever the info template was shown like infoTemplate.setcontent(mymethod); I dont see a way to do this in 4.0, or even a way to set the content when the pop up is shown. any feedback is appreciated! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2016 18:52:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180506#M16718</guid>
      <dc:creator>AndreaWeeg</dc:creator>
      <dc:date>2016-05-11T18:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate.content with method in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180507#M16719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This sample shows how to set the content when showing a popup: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/popup-docking-position/index.html" title="https://developers.arcgis.com/javascript/latest/sample-code/popup-docking-position/index.html"&gt;Dock Positions with Popup | ArcGIS API for JavaScript 4.0&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2016 16:57:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180507#M16719</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2016-05-12T16:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate.content with method in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180508#M16720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yeah that shows how to set the content using the property with plain text but i want to pass a method to that content parameter so it gets called when the pop up is shown, info template used to support that. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 17:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180508#M16720</guid>
      <dc:creator>AndreaWeeg</dc:creator>
      <dc:date>2016-05-13T17:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate.content with method in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180509#M16721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if there a plan to implement that in future. In 4.0 there is no option to set the content through function. Instead they have provided many features in the PopupTemplate through which you can customize the popup content. Format the field vaules. add own actions etc. Its more generic popup now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could let us know what is that specfic functionality you want to achieve through the function, we could let you know the alternative ways to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 17:56:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180509#M16721</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2016-05-13T17:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate.content with method in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180510#M16722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is true, I'm a sad panda. I use formatting functions for all my infoWindows. For the most part, I use these functions to format the content into HTML table formats so that field names (or more user friendly substitute names) align consistently with each other and field values. I also manipulate the results returned to create additional content for the infoWindows. Here's an example where I create a graph using the Highcharts JS library:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="fws_map.png" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/200137_fws_map.png" style="width: 620px; height: 478px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't replicate when I needed using the Dojo Chart widgets so I had to switch to using Highcharts. Here's another example from a different application:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="chartPopupEx.jpg" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/200147_chartPopupEx.jpg" style="width: 620px; height: 294px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, I'm creating a formatted HTML table on the left hand side and creating a pie chart using Google's charting API on the right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 18:22:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180510#M16722</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2016-05-13T18:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate.content with method in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180511#M16723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You may not be able to do these things using PopupTemplate. But you can do it using the Popup widget. Popup widget is like a control which you can show when ever you want. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use the layer click event get the feature, build the content you want and then show it with Popup widget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 18:39:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180511#M16723</guid>
      <dc:creator>thejuskambi</dc:creator>
      <dc:date>2016-05-13T18:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate.content with method in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180512#M16724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At this point, there are so many holes in the 4.0 release that I'm unlikely to migrate any apps to it for the foreseeable future. When I originally started developing with the JS API, I used the method you described (setting content via layer.onClick event). I stopped doing this for some reason and now I'm worried that there was some reason I did which now proves to be an issue in a 4.x world moving forward. Oh well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ESRI giveth and ESRI taketh away.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 19:07:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180512#M16724</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2016-05-13T19:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate.content with method in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180513#M16725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We do&amp;nbsp; plan to add the ability for you to modify the popup title and content as you were able to do at 3.x using the 'function' concept in a future release of the 4.0 API&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 19:52:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180513#M16725</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2016-05-13T19:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate.content with method in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180514#M16726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great to hear, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2016 20:37:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180514#M16726</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2016-05-13T20:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate.content with method in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180515#M16727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that is great to hear indeed! I am loading crime data into the map from SQL as graphics but since there are so many points retrieving the entire content of the data is just too slow so I am lazy loading the content, I only grab what I need to draw it on the map but if the user wants to see the details of a crime that's when I fetch the rest of the data, that's where I need the method call. I also use it to do some other stats calculations for polygon layers like law beats, neighborhoods, fire districts etc. I need the method call to inject a "crime" attribute to the features so I can show charts with stats per polygon which get calculated on the fly depending on what is being shown on the map.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 13:17:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180515#M16727</guid>
      <dc:creator>AndreaWeeg</dc:creator>
      <dc:date>2016-05-16T13:17:59Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate.content with method in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180516#M16728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like this is now possible in ArcGIS API for JavaScript 4.1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/sandbox.html?sample=popupTemplate-function" title="https://developers.arcgis.com/javascript/latest/sample-code/sandbox/sandbox.html?sample=popupTemplate-function"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;- PopupTemplate function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Oct 2016 19:41:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180516#M16728</guid>
      <dc:creator>JasonHine</dc:creator>
      <dc:date>2016-10-04T19:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: PopupTemplate.content with method in 4.0</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180517#M16729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The sample does not work anymore. It worked fine when it first released but somehow it's now not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2016 18:00:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-content-with-method-in-4-0/m-p/180517#M16729</guid>
      <dc:creator>SafeTRECUCB</dc:creator>
      <dc:date>2016-10-06T18:00:02Z</dc:date>
    </item>
  </channel>
</rss>

