<?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 Web Appbuilder GP Service results in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder-gp-service-results/m-p/776643#M2175</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a fairly simple GP Service built, and are building the widget in WAB.&amp;nbsp; The tool is a custom python script (not from Model Builder).&amp;nbsp; Basically you click on the map, and the script runs and returns a calculated value (water pressure, in this case).&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The GP Service runs correctly, and in ArcMap the pop-up displays the results, which are just a constructed text string configured in an arcpy.AddMessage... statement.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;In WAB, the tool appears to be executing correctly, but no results are returned.&amp;nbsp; This is because the Output section has no configuration.&amp;nbsp; The output page is blank when the tool is finished running.&amp;nbsp; All I need to do is hook up that output tab in the GP Widget in WAB to the arcpy.AddMessage value in my script.&lt;/P&gt;&lt;P&gt;Looking at the config_Geoprocessing.json script, I can see the "outputParams" are empty, so I'm just looking for some tips on what needs to go in there to finish this up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks -&lt;/P&gt;&lt;P&gt;Allen &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2016 22:12:07 GMT</pubDate>
    <dc:creator>AllenScully</dc:creator>
    <dc:date>2016-02-16T22:12:07Z</dc:date>
    <item>
      <title>Web Appbuilder GP Service results</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder-gp-service-results/m-p/776643#M2175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a fairly simple GP Service built, and are building the widget in WAB.&amp;nbsp; The tool is a custom python script (not from Model Builder).&amp;nbsp; Basically you click on the map, and the script runs and returns a calculated value (water pressure, in this case).&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;The GP Service runs correctly, and in ArcMap the pop-up displays the results, which are just a constructed text string configured in an arcpy.AddMessage... statement.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;In WAB, the tool appears to be executing correctly, but no results are returned.&amp;nbsp; This is because the Output section has no configuration.&amp;nbsp; The output page is blank when the tool is finished running.&amp;nbsp; All I need to do is hook up that output tab in the GP Widget in WAB to the arcpy.AddMessage value in my script.&lt;/P&gt;&lt;P&gt;Looking at the config_Geoprocessing.json script, I can see the "outputParams" are empty, so I'm just looking for some tips on what needs to go in there to finish this up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks -&lt;/P&gt;&lt;P&gt;Allen &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 22:12:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder-gp-service-results/m-p/776643#M2175</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2016-02-16T22:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Web Appbuilder GP Service results</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder-gp-service-results/m-p/776644#M2176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you not use a derived Output parameter for passing the results back?&amp;nbsp; Works fine for me (Geoprocessing tool from Python script, Web App Builder) using the Geoprocessing Widget to run the GP service (not a custom widget).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Feb 2016 14:05:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder-gp-service-results/m-p/776644#M2176</guid>
      <dc:creator>JohnGrogan</dc:creator>
      <dc:date>2016-02-17T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Web Appbuilder GP Service results</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder-gp-service-results/m-p/776645#M2177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks John - &lt;/P&gt;&lt;P&gt;Yes, I think it needs to be a derived output parameter.&amp;nbsp; But as a relative newbie to scripting Geoprocessing tools, I'm not totally sure how to get the AddMessage content into that parameter. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Feb 2016 23:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder-gp-service-results/m-p/776645#M2177</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2016-02-18T23:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Web Appbuilder GP Service results</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder-gp-service-results/m-p/776646#M2178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The arcpy.AddMessage() will have no effect on the GP widget in WAB. You can collect the strings and concatenate them and show them at the end using the &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/setparameter.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-functions/setparameter.htm"&gt;SetParameter—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 01:34:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder-gp-service-results/m-p/776646#M2178</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-02-19T01:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Web Appbuilder GP Service results</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder-gp-service-results/m-p/776647#M2179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - &lt;/P&gt;&lt;P&gt;Took some trial and error but I got it going.&amp;nbsp; Essentially created variables in the python script that represented the same string values I had in the AddMessage tools.&amp;nbsp; Then using SetParameter I referred to those variables, and set 2 corresponding derived output parameters in the script (in ArcMap - properties for the script), then published GP Service.&lt;/P&gt;&lt;P&gt;The desired results now show up in the WAB Geoprocessing widget, with essentially no configuration in WAB other than plugging the GP Service into it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 19:44:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/web-appbuilder-gp-service-results/m-p/776647#M2179</guid>
      <dc:creator>AllenScully</dc:creator>
      <dc:date>2016-02-19T19:44:17Z</dc:date>
    </item>
  </channel>
</rss>

