<?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 Enable popup by default programatically on Dynamic Service (Local Layer Widget Related)? in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821478#M7438</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to enable popups on layers in an ArcGISDynamicMapServiceLayer programmatically.&amp;nbsp; Ultimately I'd like to move this code into the LocalLayer widget.&amp;nbsp; I've gotten something working for feature layers, but I'm struggling a bit on layers within MapServices.&amp;nbsp; I'm digging into LayerInfoForDefaultService.js now and am trying to figure out the path.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like you can't call enablepopup() on those layers until they have infotemplates loaded.&amp;nbsp; I'm going to try including an infotemplate in the locallayer configuration.&amp;nbsp; I'm hunting through the code that is called when I hit the dropdown for the layer for the first time (it appears to populate the info template at that time if it's blank).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any sample code or suggestions / experience with attempting to do this same thing?&amp;nbsp; Even if you've attempted and gotten stumped it could be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Aug 2016 14:10:31 GMT</pubDate>
    <dc:creator>TimDine</dc:creator>
    <dc:date>2016-08-17T14:10:31Z</dc:date>
    <item>
      <title>Enable popup by default programatically on Dynamic Service (Local Layer Widget Related)?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821478#M7438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm attempting to enable popups on layers in an ArcGISDynamicMapServiceLayer programmatically.&amp;nbsp; Ultimately I'd like to move this code into the LocalLayer widget.&amp;nbsp; I've gotten something working for feature layers, but I'm struggling a bit on layers within MapServices.&amp;nbsp; I'm digging into LayerInfoForDefaultService.js now and am trying to figure out the path.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like you can't call enablepopup() on those layers until they have infotemplates loaded.&amp;nbsp; I'm going to try including an infotemplate in the locallayer configuration.&amp;nbsp; I'm hunting through the code that is called when I hit the dropdown for the layer for the first time (it appears to populate the info template at that time if it's blank).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any sample code or suggestions / experience with attempting to do this same thing?&amp;nbsp; Even if you've attempted and gotten stumped it could be helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 14:10:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821478#M7438</guid>
      <dc:creator>TimDine</dc:creator>
      <dc:date>2016-08-17T14:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Enable popup by default programatically on Dynamic Service (Local Layer Widget Related)?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821479#M7439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With some more experimenting I've realized that popups are already enabled by default for map service layers IF you've configured a popup for that layer.&amp;nbsp; I'd like to get the same behavior without having to put every field into the config file.&amp;nbsp; Ideally I'd like to put a single item (like popup: default or popup: true) and get the full default popup.&amp;nbsp; Then I can configure the ones I want in there by exception rather than all of them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Aug 2016 16:45:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821479#M7439</guid>
      <dc:creator>TimDine</dc:creator>
      <dc:date>2016-08-17T16:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Enable popup by default programatically on Dynamic Service (Local Layer Widget Related)?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821480#M7440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Have you tried to add a PopupTemplate (i.e. layer.infoTemplate = new PopupTemplate();) before the layer is added to the map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Aug 2016 13:15:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821480#M7440</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-08-18T13:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Enable popup by default programatically on Dynamic Service (Local Layer Widget Related)?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821481#M7441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert/Tim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did anyone get this figured out? &amp;nbsp;I would also like to set all layers to pop up by default. &amp;nbsp;We are constantly removing and adding layers and republishing. It would be awesome if all layers had this ability by default instead of revisting WAB 2-3x a week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kade&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 18:38:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821481#M7441</guid>
      <dc:creator>GarrettMcBride</dc:creator>
      <dc:date>2016-09-23T18:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Enable popup by default programatically on Dynamic Service (Local Layer Widget Related)?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821482#M7442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/5016"&gt;Garrett McBride&lt;/A&gt;‌ do you mean when you republish it kills all thepopups? We have that. &amp;nbsp;I use the popups through AGOL but Arc Server 10.2 and older, it kills them all. I spend many hours point and clicking Enable Popup. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please vote for this idea for AGOL if you'd like to see this on webmap popups:&amp;nbsp;&lt;A href="https://community.esri.com/ideas/12405"&gt;Webmaps - a 'turn all popups on' button&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes I know this is for dynamic layers locally which would get around this and I'll be following this thread with interest as well. &amp;nbsp;I have not used locallayer widget yet but might if this gets solved before Esri gets around to the above idea, which is probably quite likely)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 18:55:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821482#M7442</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-09-23T18:55:45Z</dc:date>
    </item>
    <item>
      <title>Re: Enable popup by default programatically on Dynamic Service (Local Layer Widget Related)?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821483#M7443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was meaning when i republish and add new layers the pop-ups for those layers aren't configured.&amp;nbsp; So the new layers don't have pop-ups enabled when the older ones do (from initial deployment in WAB).&amp;nbsp; The end users ask, why can I click on these layers and get info but not these other ones?&amp;nbsp; So I'm thinking about removing it all together and having them enable each layer as they need it.&amp;nbsp; We are constantly adding/updating layers so this will be a big problem for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately I am not using AGOL so that will not help me.&amp;nbsp; We have a 12 VM&amp;nbsp;ArcGIS server infrastructure and only loaded portal to get WAB to work.&amp;nbsp; All services being used are being used directly from our own AGS's using the locallayer widget.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking into this:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/159817"&gt;https://community.esri.com/thread/159817&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The coding is outside my realm of knowledge but I have passed it along to our developer to see if this is an option for our current workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick response!&amp;nbsp; Let me know if you have any ideas/suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kade&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 19:09:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821483#M7443</guid>
      <dc:creator>GarrettMcBride</dc:creator>
      <dc:date>2016-09-23T19:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Enable popup by default programatically on Dynamic Service (Local Layer Widget Related)?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821484#M7444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;This thread may be of interest to you. I detail how to enable popups for ALL layer in WAB by default.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/638227-re-layer-list-enable-popub-by-default"&gt;https://community.esri.com/message/638227-re-layer-list-enable-popub-by-default&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2016 14:11:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821484#M7444</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-09-30T14:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: Enable popup by default programatically on Dynamic Service (Local Layer Widget Related)?</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821485#M7445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Dec 2019 19:38:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/enable-popup-by-default-programatically-on-dynamic/m-p/821485#M7445</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2019-12-11T19:38:04Z</dc:date>
    </item>
  </channel>
</rss>

