<?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: Geoprocessing Service Results in Web App in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155696#M4379</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was my solution and it is working for me.&lt;/P&gt;&lt;P&gt;Back to one of the original questions of this post, Is there any way to see in WAB a arcpy.AddMessage command in python?&lt;/P&gt;&lt;P&gt;You can see it when you run the service in REST or see it in server logs but I could not find a way to see it in WAB.&lt;/P&gt;&lt;P&gt;Sometime the output of GP service is just error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Sep 2015 18:28:47 GMT</pubDate>
    <dc:creator>ModyBuchbinder</dc:creator>
    <dc:date>2015-09-17T18:28:47Z</dc:date>
    <item>
      <title>Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155689#M4372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have published a geoprocessing service to ArcGIS Server, and have added it to a web application (ArcGIS Online Web App Builder geoprocessing widget).&amp;nbsp; I am able to execute the tool from within the application, and the resulting feature class is added to the map.&amp;nbsp; However, there are a few problems with the output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; I am not able to get pop-up information for the geoprocessing result&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; it does not show up in the application's legend widget&lt;/P&gt;&lt;P&gt;3.&amp;nbsp; when configuring the geoprocessing widget, I do not see any options for defining the symbology and popup fields for the output as described in the widget documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody have any ideas for fixing this?&amp;nbsp; Perhaps the output parameter is not configured correctly in my original tool/python script?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 00:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155689#M4372</guid>
      <dc:creator>BryanDieter</dc:creator>
      <dc:date>2015-09-15T00:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155690#M4373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you tell us a little more about how the output is defined? Is it a featureclass or a featureset. Does the GP service have a related MapService? All these things influence the way the result can be managed in the WebApp created with the WAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 01:11:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155690#M4373</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-09-15T01:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155691#M4374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I've made a small amount of progress since posting my question.&amp;nbsp; When configuring the geoprocessing widget in WAB, under Options there is a check box for 'Use the drawing options of result map service'.&amp;nbsp; If I uncheck this, then the Renderer and Popup options do display for the Output.&amp;nbsp; However, under Renderer, it says 'Can not set renderer because of unknown geometry type.'&amp;nbsp; And under Popup, the list of fields is empty.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script tool that I am trying to publish is fairly basic, in which I am querying a table, calculating some statistics on the query result, and then joining the stats table to a feature class.&amp;nbsp; At the end of the script I have the line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.SetParameter(1, "output_fc")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked to see if I overlooked some of the configuration options in the Service Editor when publishing the GP service, and the geometry and schema are blank there also.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 01:23:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155691#M4374</guid>
      <dc:creator>BryanDieter</dc:creator>
      <dc:date>2015-09-15T01:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155692#M4375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the properties for the script tool, the output parameter data type is Feature Class; the type is Derived; and the direction is Output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 01:41:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155692#M4375</guid>
      <dc:creator>BryanDieter</dc:creator>
      <dc:date>2015-09-15T01:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155693#M4376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the reason is that there is no geometry type in your service definition for the output parameter. So the widget doesn't know how to configure the symbol. And the result will be added as GraphicsLayer.&lt;/P&gt;&lt;P&gt;You should adjust your geoprocessing service to add a geometry type to your output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 09:00:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155693#M4376</guid>
      <dc:creator>JianWang3</dc:creator>
      <dc:date>2015-09-15T09:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155694#M4377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the help Jian and Xander.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made some changes to the input datasets for the script tool, and am now seeing the geometry (Polygon) and schema (list of fields) info in the Service Editor when publishing the GP service. However, in web app builder, when adding the service to the geoprocessing widget,&amp;nbsp; I am still seeing the message 'Can not set renderer because of unknown geometry type' and no fields are visible in the popup configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jian, is there a way to confirm that the service definition includes a geometry type for the output parameter?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Bryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2015 21:09:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155694#M4377</guid>
      <dc:creator>BryanDieter</dc:creator>
      <dc:date>2015-09-15T21:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155695#M4378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I seem to be having the same problem as described in this post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/547583"&gt;Re: Cannot renderer gp service results&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ended up using the same work around of embedding the script tool in a model, which fixes my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Sep 2015 01:36:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155695#M4378</guid>
      <dc:creator>BryanDieter</dc:creator>
      <dc:date>2015-09-16T01:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155696#M4379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That was my solution and it is working for me.&lt;/P&gt;&lt;P&gt;Back to one of the original questions of this post, Is there any way to see in WAB a arcpy.AddMessage command in python?&lt;/P&gt;&lt;P&gt;You can see it when you run the service in REST or see it in server logs but I could not find a way to see it in WAB.&lt;/P&gt;&lt;P&gt;Sometime the output of GP service is just error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mody&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2015 18:28:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155696#M4379</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2015-09-17T18:28:47Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155697#M4380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To see the output message from a GP service in a WAB widget, try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage(msg)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; resultMsg = msg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then at the end of your script (assuming you are wrapping it in a try):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; finally:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.SetParameterAsText(1, resultMsg)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The resultMsg should now appear in the Output side of the GP tool in the WAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2015 18:23:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155697#M4380</guid>
      <dc:creator>GrantHerbert</dc:creator>
      <dc:date>2015-09-18T18:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155698#M4381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'd like to use output result feature (es. points) of a geoprocessing widget as input for another geoprocessing widget that is configured as list of avaible layers on the map. How can I do? Is it necessary to refresh the widget? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2015 15:06:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155698#M4381</guid>
      <dc:creator>FabioD_Ovidio</dc:creator>
      <dc:date>2015-09-21T15:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155699#M4382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you loading the results as a layer or as graphics? &lt;/P&gt;&lt;P&gt;If a layer, you should be able to refresh the layer list in the second widget. I am new to widgets in general, but I would look into some of the events available in the widget code and see if one is suitable, worst case you could have a button that reloaded the layers.&lt;/P&gt;&lt;P&gt;If graphics then you will have to extract them from the map, and check that the format is suitable for input to your process.&lt;/P&gt;&lt;P&gt;Alternatively, could you chain the processes together?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2015 04:27:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155699#M4382</guid>
      <dc:creator>GrantHerbert</dc:creator>
      <dc:date>2015-09-22T04:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155700#M4383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Grant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a bunch of AddMessage statements that look like somewhat of a small report after the tool is done running. How do i implement the "&lt;EM style="background-color: #ffffff;"&gt;arcpy.SetParameterAsText(1, resultMsg)&lt;/EM&gt;" that you mentioned in your earlier reply. I want to display text resultsin the GP widget output window.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Aug 2017 19:49:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155700#M4383</guid>
      <dc:creator>ScottEvans6</dc:creator>
      <dc:date>2017-08-07T19:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155701#M4384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Grant, the solution you propose to adding a message in the Geoprocessing tool of WAB, will this work in the out of the box version of WAB or does it need to be a custom widget in web app developer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 23:04:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155701#M4384</guid>
      <dc:creator>AhnaMiller2</dc:creator>
      <dc:date>2017-10-30T23:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155702#M4385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Short answer, it will work with the out of the box version of WAB (for instance the one available in WAB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create a processing service&amp;nbsp;based on a script that you configured as a tool, you have the possibility to define the input and output parameters. When you use an output parameter, you can set the value of this parameter&amp;nbsp;in the script. For instance, the part that states "&lt;EM&gt;arcpy.SetParameterAsText(1, resultMsg)&lt;/EM&gt;" will set the text contained by the variable resultMsg to the&amp;nbsp;parameter with index 1 (the second parameter). When you publish the script and consume the GP Service in the WAB Geoprocessing widget, you will notice two parameters, 1 input and 1 output in this case. The input will be asked and the output will be shown after the process successfully completes.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 23:17:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155702#M4385</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-10-30T23:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Service Results in Web App</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155703#M4386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After some tinkering around, I found and alternative solution. I realized that WAB does not recognize the "\n" new line symbol in python. So for larger reports, your output may be all jumbled up. What I did was write the info to a text file. That text file shows up in the results window as a link that can be clicked by the user. It then opens up in a new browser tab.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 14:24:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/geoprocessing-service-results-in-web-app/m-p/155703#M4386</guid>
      <dc:creator>ScottEvans6</dc:creator>
      <dc:date>2017-11-28T14:24:42Z</dc:date>
    </item>
  </channel>
</rss>

