<?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 Print Widget - Not handling async error callback  in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/print-widget-not-handling-async-error-callback/m-p/703769#M60</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed customised print task geo-processing service and consuming in Print Widget (WAB-2.10).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I observed that if the execution mode of service is "Asynchronous" then widget is not showing error message on UI if failed to execute. Code is not executing '_onPrintError' function.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;this.fileHandle.then(lang.hitch(this, '_onPrintComplete'), lang.hitch(this, '_onPrintError'));&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I also attached on error event to this.printTask object but doesn't execute on 'esrijobfailed'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have configured service to show\return error messages. If there is no error then printing is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to handle error call back on async call?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to notify user that service execution is fail or hide progress shelter otherwise it will be on UI until i cleared prints manually.&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;Regards,&lt;/P&gt;&lt;P&gt;Prashant&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Apr 2019 02:46:31 GMT</pubDate>
    <dc:creator>PrashantKirpan</dc:creator>
    <dc:date>2019-04-08T02:46:31Z</dc:date>
    <item>
      <title>Print Widget - Not handling async error callback</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/print-widget-not-handling-async-error-callback/m-p/703769#M60</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed customised print task geo-processing service and consuming in Print Widget (WAB-2.10).&amp;nbsp;&lt;/P&gt;&lt;P&gt;I observed that if the execution mode of service is "Asynchronous" then widget is not showing error message on UI if failed to execute. Code is not executing '_onPrintError' function.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;this.fileHandle.then(lang.hitch(this, '_onPrintComplete'), lang.hitch(this, '_onPrintError'));&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I also attached on error event to this.printTask object but doesn't execute on 'esrijobfailed'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have configured service to show\return error messages. If there is no error then printing is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to handle error call back on async call?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just want to notify user that service execution is fail or hide progress shelter otherwise it will be on UI until i cleared prints manually.&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;Regards,&lt;/P&gt;&lt;P&gt;Prashant&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 02:46:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/print-widget-not-handling-async-error-callback/m-p/703769#M60</guid>
      <dc:creator>PrashantKirpan</dc:creator>
      <dc:date>2019-04-08T02:46:31Z</dc:date>
    </item>
  </channel>
</rss>

