<?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 to cancel PrintTask in JS API 4 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-cancel-printtask-in-js-api-4/m-p/1013738#M71279</link>
    <description>&lt;P&gt;Check out the 'requestOptions' (&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions" target="_self"&gt;RequestOptions&lt;/A&gt;) parameter of the execute(...) method; maybe the 'signal' (&lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal" target="_self"&gt;AbortSignal&lt;/A&gt;) property is something to try out.&amp;nbsp; This might allow you to build the UI so you can allow the user to continue using the UI without having to wait for a response.&lt;/P&gt;</description>
    <pubDate>Mon, 04 Jan 2021 20:35:59 GMT</pubDate>
    <dc:creator>JohnGrayson</dc:creator>
    <dc:date>2021-01-04T20:35:59Z</dc:date>
    <item>
      <title>How to cancel PrintTask in JS API 4</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-cancel-printtask-in-js-api-4/m-p/1013664#M71275</link>
      <description>&lt;P&gt;Is it possible to cancel a PrintTask. I don't see any cancelJob() method in the API documentaion. I see a cancelJob() in the Geoprocessor methods. I was wondering if there is something like that for the PrintTask. Would be helpful. Users sometimes submit large maps on accident and have to wait a few minuets for the task to end.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 18:20:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-cancel-printtask-in-js-api-4/m-p/1013664#M71275</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-04T18:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel PrintTask in JS API 4</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-cancel-printtask-in-js-api-4/m-p/1013738#M71279</link>
      <description>&lt;P&gt;Check out the 'requestOptions' (&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions" target="_self"&gt;RequestOptions&lt;/A&gt;) parameter of the execute(...) method; maybe the 'signal' (&lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal" target="_self"&gt;AbortSignal&lt;/A&gt;) property is something to try out.&amp;nbsp; This might allow you to build the UI so you can allow the user to continue using the UI without having to wait for a response.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 20:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-cancel-printtask-in-js-api-4/m-p/1013738#M71279</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-01-04T20:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel PrintTask in JS API 4</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-cancel-printtask-in-js-api-4/m-p/1013769#M71282</link>
      <description>&lt;P&gt;...and here's a quick codepen showing this concept:&amp;nbsp;&lt;A href="https://codepen.io/john-grayson/pen/LYRmGxY" target="_blank"&gt;https://codepen.io/john-grayson/pen/LYRmGxY&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jan 2021 21:39:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-cancel-printtask-in-js-api-4/m-p/1013769#M71282</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-01-04T21:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel PrintTask in JS API 4</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-cancel-printtask-in-js-api-4/m-p/1013848#M71283</link>
      <description>&lt;P&gt;Wow I appreciate the codepen! I see what you're doing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nice, It works on &lt;SPAN&gt;Synchronous but I have this on&amp;nbsp;Asynchronous. I tried to switch it to&amp;nbsp;Synchronous but it times out after 60 seconds. Even though I change the time limit from 60seconds to 120 seconds. Weird.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way I can do this with Asynchronous. It's weird. It does work on&amp;nbsp;Asynchronous but it still goes through and keeps fetching until the last one and then it cancels it.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 03:55:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-cancel-printtask-in-js-api-4/m-p/1013848#M71283</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-05T03:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel PrintTask in JS API 4</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-cancel-printtask-in-js-api-4/m-p/1013996#M71287</link>
      <description>&lt;P&gt;Do you have a codepen/jsbin showing the issue?&amp;nbsp; Maybe make a copy of mine and modify it so we can experience the issue described?&amp;nbsp; The concept for the shared code is to provide a UX that allows the user to cancel and continue using the app regardless of if/when the print calls themselves get canceled, but this might not be what you're after.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 16:50:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-cancel-printtask-in-js-api-4/m-p/1013996#M71287</guid>
      <dc:creator>JohnGrayson</dc:creator>
      <dc:date>2021-01-05T16:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to cancel PrintTask in JS API 4</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-cancel-printtask-in-js-api-4/m-p/1014163#M71288</link>
      <description>&lt;P&gt;I will try to whip something up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's just that you have to change the setting to &lt;SPAN&gt;Asynchronous on the server side. In the manager setting for the service. So I will have to try and figure that out. Thanks for all the help so far!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2021 00:33:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-cancel-printtask-in-js-api-4/m-p/1014163#M71288</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-01-06T00:33:26Z</dc:date>
    </item>
  </channel>
</rss>

