<?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: Print Popups in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-popups/m-p/111673#M3216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. If I were to use the popup/report arcpy script in WAB, is there a way to make sure the forceFeatureAttribute option of the print template is set to true? Or should this script be primarily be used in a custom JS application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 May 2018 13:55:14 GMT</pubDate>
    <dc:creator>michael_vetter</dc:creator>
    <dc:date>2018-05-25T13:55:14Z</dc:date>
    <item>
      <title>Print Popups</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-popups/m-p/111671#M3214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create a custom print service that allows a user to select points and then have a PDF created that displays attributes from the selected points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've looked over this &lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-enterprise/uncategorized/printing-popups-from-web-application/?rmedium=redirect&amp;amp;rsource=blogs.esri.com%2Fesri%2Farcgis%2F2016%2F06%2F20%2Fprinting-popups-from-web-application"&gt;blog&lt;/A&gt;&amp;nbsp;post about how to accomplish this task. I was able to accomplish option #1 from the blog post, but it isn't really acceptable. I downloaded the sample code from the post and ran the script. The script runs and I'm able to create geoprocessing service from the result. However, when I try to use geoprocessing service in web appbuilder, I get an error saying that the url is invalid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas as to why the error message is saying that the url is invalid? Does anybody have some sample code to show how they achieved this task?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2018 18:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-popups/m-p/111671#M3214</guid>
      <dc:creator>michael_vetter</dc:creator>
      <dc:date>2018-05-07T18:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Print Popups</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-popups/m-p/111672#M3215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&amp;nbsp;&lt;/P&gt;&lt;P&gt;My apologies as&amp;nbsp;I couldn't get back to you earlier.&lt;/P&gt;&lt;P&gt;it seems like you ran into this&amp;nbsp;bug&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;BUG-000114154 -&amp;nbsp;&lt;SPAN style="color: #000000; background-color: #e4e4e4; font-size: 14.6667px;"&gt;Print Widget fails to load/connect ArcPy print service without optional parameters&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;There is a simple workaround though:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;- while you are creating the arcpy script tool, you need to add the following two optional parameters to match its signature to the &lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"&gt;out of the box print service's signature&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="color: #000000; font-size: 14.4px;"&gt;&lt;UL style="color: #000000; font-size: 14.4px;"&gt;Format&lt;/UL&gt;&lt;/UL&gt;&lt;UL style="color: #000000; font-size: 14.4px;"&gt;&lt;UL style="color: #000000; font-size: 14.4px;"&gt;Layout_Template&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;- the values in that list are not important here - therefore you can&amp;nbsp;get away with&amp;nbsp;only one value for each of these parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Apparently the bug in the WAB print widget makes it think the print service is&amp;nbsp;not valid&amp;nbsp;when those two optional parameters are missing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;one other thing:&amp;nbsp;I understand you have your WAB app are running on 10.5.1&amp;nbsp;enterprise environment.That is good. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Apparently there was an optimization made in JS API Print task in 3.21 release that strips off all attributes from all layers in the webmap_as_json - and since the popup/report arcpy script relies on these attributes, when they are missing, you won't see attributes showing up in the print output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;The issue in JS API Print task got fixed in 3.24 where you can ask to &lt;A href="https://developers.arcgis.com/javascript/3/jsapi/printtemplate-amd.html#forcefeatureattributes"&gt;include attributes optionally&lt;/A&gt;.&amp;nbsp;Unfortunately 10.6 enterprise does not include 3.24.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;pls let me know if you have any question.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #24292e; background-color: #ffffff;"&gt;Tanu&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2018 18:01:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-popups/m-p/111672#M3215</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2018-05-24T18:01:48Z</dc:date>
    </item>
    <item>
      <title>Re: Print Popups</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-popups/m-p/111673#M3216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tanu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. If I were to use the popup/report arcpy script in WAB, is there a way to make sure the forceFeatureAttribute option of the print template is set to true? Or should this script be primarily be used in a custom JS application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 May 2018 13:55:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-popups/m-p/111673#M3216</guid>
      <dc:creator>michael_vetter</dc:creator>
      <dc:date>2018-05-25T13:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Print Popups</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-popups/m-p/111674#M3217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael,&lt;/P&gt;&lt;P&gt;I'm novice when it comes to WAB widgets&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/plain.png" /&gt;&amp;nbsp;my understanding is that&amp;nbsp;WAB&amp;nbsp;widgets heavily, if not entirely, relies on JS API functionality - if the version of JS API, that is installed as part of your ArcGIS Enterprise/portal install, is not one of those I have mentioned earlier, then you are out of luck since forceAttributes is not supported in those JS API versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my take:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;if you are using 10.5.1 or earlier version of ArcGIS Enterprise/portal, then you are all good - all you need to do is to update your arcpy based print service with those optional parameters.&lt;/LI&gt;&lt;LI&gt;if you have already moved to 10.6 &lt;SPAN&gt;ArcGIS Enterprise/portal&lt;/SPAN&gt;, then a custom JS API based web app appears to be a viable solution.&lt;/LI&gt;&lt;LI&gt;if you are using WAB off agol, then I need to research to find out&amp;nbsp;what can be done - as you know agol is updated with JS API 3.24 as part of&amp;nbsp;its&amp;nbsp;latest release.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having said that, we are working on making this issue go away, I will update this thread as&amp;nbsp;enhancements are made available as part of new releases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looped in &lt;A href="https://community.esri.com/migrated-users/44829"&gt;Jianxia Song&lt;/A&gt;‌ in case she has additional info to add or I made any erroneous claim(s) here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Tanu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2018 21:13:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/print-popups/m-p/111674#M3217</guid>
      <dc:creator>TanuHoque</dc:creator>
      <dc:date>2018-05-31T21:13:28Z</dc:date>
    </item>
  </channel>
</rss>

