<?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: How can you refresh the Print Widget? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-you-refresh-the-print-widget/m-p/672428#M62677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeffrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested out the Print sample in the samples list:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_print" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_print"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It behaves normally. When you return to the original page, it displays the print button, not the 'printout' hyperlink.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are your working with the 3.x or 4.x API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2018 17:40:13 GMT</pubDate>
    <dc:creator>AmritKumar1</dc:creator>
    <dc:date>2018-04-02T17:40:13Z</dc:date>
    <item>
      <title>How can you refresh the Print Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-you-refresh-the-print-widget/m-p/672427#M62676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the esri/dijit/Print in an application. On print-complete, I have the new page automatically open in a new tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;printer.on("print-complete", function (evt) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; window.open(evt.result.url);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When user returns to original page, the print button is still displayed as "&lt;SPAN style="text-decoration: underline;"&gt;printout&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;I have tried using printer.refresh(); which amazingly works, but kicks out errors in the console.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like the print button to return to it's printer.startup(); state after print-complete.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 15:29:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-you-refresh-the-print-widget/m-p/672427#M62676</guid>
      <dc:creator>JeffreyFrye</dc:creator>
      <dc:date>2018-04-02T15:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can you refresh the Print Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-you-refresh-the-print-widget/m-p/672428#M62677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeffrey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested out the Print sample in the samples list:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_print" title="https://developers.arcgis.com/javascript/3/sandbox/sandbox.html?sample=widget_print"&gt;ArcGIS API for JavaScript Sandbox&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It behaves normally. When you return to the original page, it displays the print button, not the 'printout' hyperlink.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are your working with the 3.x or 4.x API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 17:40:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-you-refresh-the-print-widget/m-p/672428#M62677</guid>
      <dc:creator>AmritKumar1</dc:creator>
      <dc:date>2018-04-02T17:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can you refresh the Print Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-you-refresh-the-print-widget/m-p/672429#M62678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response Amrit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 3.23. I am working internally In a development environment inside our network. I wonder If that is causing the issue?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 17:50:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-you-refresh-the-print-widget/m-p/672429#M62678</guid>
      <dc:creator>JeffreyFrye</dc:creator>
      <dc:date>2018-04-02T17:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: How can you refresh the Print Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-you-refresh-the-print-widget/m-p/672430#M62679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably. Domain can be an issue. It depends on the domain on which the application is deployed and where the Export Web Map task is triggered to.&amp;nbsp;To quote the documentation:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;"&lt;EM&gt;If the URL for the&amp;nbsp;&lt;/EM&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;A href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task" style="color: #00629b; text-decoration: none;"&gt;Export Web Map task&lt;/A&gt;&lt;/EM&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;&lt;EM&gt;&amp;nbsp;is from the same domain as the application the print page will be displayed in a new browser window or tab when the print button is clicked. If the URL is from a different domain, a hyperlink to the print page appears in place of the print button.&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #ffffff;"&gt;I believe, if the application and the service are from same domain, you need not specifically write out event for print-complete. It should automatically open the print result in new tab of the browser. We can check if this resolves the issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 18:00:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-you-refresh-the-print-widget/m-p/672430#M62679</guid>
      <dc:creator>AmritKumar1</dc:creator>
      <dc:date>2018-04-02T18:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can you refresh the Print Widget?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-you-refresh-the-print-widget/m-p/672431#M62680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Interesting. Both my development server (ArcGIS Server 10.5.1 with IIS installed) and the server hosting my REST Services (ArcGIS Server 10.5.1 with a webAdapter pointing to it from an IIS server) are all in the same domain in our network.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2018 18:12:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-can-you-refresh-the-print-widget/m-p/672431#M62680</guid>
      <dc:creator>JeffreyFrye</dc:creator>
      <dc:date>2018-04-02T18:12:02Z</dc:date>
    </item>
  </channel>
</rss>

