<?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: Get Messages of GP Services in WebAppBuilder in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/get-messages-of-gp-services-in-webappbuilder/m-p/429922#M11382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Philip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes!&amp;nbsp; You must make sure that the geoprocessing service has the message level turned on to info so you will see all of the messages and not just errors and warnings.&amp;nbsp; I believe this is "none" by default. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then made a simple modification to the geoprocessing widget.js onJobComplete section to display messages.&amp;nbsp; This was just to prove it was possible, but I am sure with a bit more effort, a new function could be added to display it the way you'd like.&amp;nbsp; Here is a snippet of the modification that I made to the onJobComplete function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //onJobComplete is invoked even if jobStatus is STATUS_FAILED.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //It hides this.infoNode so user can not see the error message!
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //if(jobInfo.jobInfo.jobStatus !== JobInfo.STATUS_SUCCEEDED){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._createErrorMessages(jobInfo.jobInfo.messages);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //return;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //}&lt;/PRE&gt;&lt;P&gt;I just commented out the if statement so that all messages would be displayed.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 19:20:16 GMT</pubDate>
    <dc:creator>TomSellsted</dc:creator>
    <dc:date>2021-12-11T19:20:16Z</dc:date>
    <item>
      <title>Get Messages of GP Services in WebAppBuilder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/get-messages-of-gp-services-in-webappbuilder/m-p/429921#M11381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi colleagues,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am recently facing the following problem:&lt;/P&gt;&lt;P&gt;is it possible to write messages to the output pane of the GP widget?&lt;/P&gt;&lt;P&gt;(arcpy.AddMessage() does not work, btw)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Philip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 08:41:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/get-messages-of-gp-services-in-webappbuilder/m-p/429921#M11381</guid>
      <dc:creator>PhilipGlasner1</dc:creator>
      <dc:date>2015-06-17T08:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get Messages of GP Services in WebAppBuilder</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/get-messages-of-gp-services-in-webappbuilder/m-p/429922#M11382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Philip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes!&amp;nbsp; You must make sure that the geoprocessing service has the message level turned on to info so you will see all of the messages and not just errors and warnings.&amp;nbsp; I believe this is "none" by default. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then made a simple modification to the geoprocessing widget.js onJobComplete section to display messages.&amp;nbsp; This was just to prove it was possible, but I am sure with a bit more effort, a new function could be added to display it the way you'd like.&amp;nbsp; Here is a snippet of the modification that I made to the onJobComplete function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //onJobComplete is invoked even if jobStatus is STATUS_FAILED.
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //It hides this.infoNode so user can not see the error message!
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //if(jobInfo.jobInfo.jobStatus !== JobInfo.STATUS_SUCCEEDED){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this._createErrorMessages(jobInfo.jobInfo.messages);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //return;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //}&lt;/PRE&gt;&lt;P&gt;I just commented out the if statement so that all messages would be displayed.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:20:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/get-messages-of-gp-services-in-webappbuilder/m-p/429922#M11382</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2021-12-11T19:20:16Z</dc:date>
    </item>
  </channel>
</rss>

