<?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: PrintTask uncaught TypeError: Cannot read property 'query' of undefined in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/printtask-uncaught-typeerror-cannot-read-property/m-p/79391#M2268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You included some code and a screen capture of the error but that is still not enough for me to figure out the error. Can you provide more?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Aug 2016 16:06:50 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2016-08-16T16:06:50Z</dc:date>
    <item>
      <title>PrintTask uncaught TypeError: Cannot read property 'query' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/printtask-uncaught-typeerror-cannot-read-property/m-p/79390#M2267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello I was able to generate a thumbnail image using PrintTask from a WAB widget via&amp;nbsp;&lt;SPAN style="font-size: 12.0pt;"&gt;&lt;A href="http://gwang-w530:3344/webappviewer/?config=sample-configs/config-demo.json"&gt;http://mycomputer:3344/webappviewer/?config=sample-configs/config-demo.json&lt;/A&gt;. But after I added the widget to one of my apps using WAB dev edition. i got an error below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;&lt;IMG __jive_id="216548" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/216548_pastedImage_1.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Not sure why it worked through the custom widget testing url but didn't work after I added it to my application. Can you please help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_printTask: null, &lt;BR /&gt; _printTaskParams: null,&lt;BR /&gt; _thumbnailHeight: 200, &lt;BR /&gt; _thumbnailWidth: 200, &lt;BR /&gt; _thumbnailDpi: 96,&lt;BR /&gt; _thumbnailFormat: 'PNG32',&lt;BR /&gt; _templateLayout: "MAP_ONLY",&lt;BR /&gt; _preserveScale: false, &lt;BR /&gt; _showAttribution: false,&lt;BR /&gt;_exportWebMapTaskUrl: '&lt;A class="jivelink2" href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task" title="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"&gt;http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task&lt;/A&gt;',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_initPrintTask: function(){&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this._printTask = new PrintTask(this._exportWebMapUrl);&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var template = new PrintTemplate();&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var params = new PrintParameters();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;template.exportOptions = {&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;width: this._thumbnailWidth,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;height: this._thumbnailHeight,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;dpi: this._thumbnailDpi&lt;BR /&gt; };&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;template.format = this._thumbnailFormat;&lt;BR /&gt; template.layout = this._templateLayout;&lt;BR /&gt; template.preserveScale = this._preserveScale;&lt;BR /&gt; template.showAttribution = this._showAttribution;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;params.map = this.map;&lt;BR /&gt; params.template = template;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this._printTaskParams = params; &lt;BR /&gt; },&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;_createThumbnail: function(){&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;this._printTask.execute(this._printTaskParams, lang.hitch(this, function(result){ &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;this._storeThumbnailUrl(result.url);&lt;BR /&gt; }));&lt;/P&gt;&lt;P&gt;},&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 15:25:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/printtask-uncaught-typeerror-cannot-read-property/m-p/79390#M2267</guid>
      <dc:creator>Alexwang</dc:creator>
      <dc:date>2016-08-16T15:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask uncaught TypeError: Cannot read property 'query' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/printtask-uncaught-typeerror-cannot-read-property/m-p/79391#M2268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You included some code and a screen capture of the error but that is still not enough for me to figure out the error. Can you provide more?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 16:06:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/printtask-uncaught-typeerror-cannot-read-property/m-p/79391#M2268</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-08-16T16:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask uncaught TypeError: Cannot read property 'query' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/printtask-uncaught-typeerror-cannot-read-property/m-p/79392#M2269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Robert. My fault,&amp;nbsp;I used the wrong name for the PrintTask url. I was able to make it work now.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another question i observed was that the ArcServer GP service keeps the map images only for a short time. Can I change somewhere on ArcServer side to keep the thumbnail images longer? Basically my widget uses a reference to link to these thumbnail images.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 17:09:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/printtask-uncaught-typeerror-cannot-read-property/m-p/79392#M2269</guid>
      <dc:creator>Alexwang</dc:creator>
      <dc:date>2016-08-16T17:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: PrintTask uncaught TypeError: Cannot read property 'query' of undefined</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/printtask-uncaught-typeerror-cannot-read-property/m-p/79393#M2270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;You have to edit your ArcGIS Servers "Site" page and find the output directory and change the max file age (default 10 minutes).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 17:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/printtask-uncaught-typeerror-cannot-read-property/m-p/79393#M2270</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2016-08-16T17:30:13Z</dc:date>
    </item>
  </channel>
</rss>

