<?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: Python scripts and Web Geoprocessing Service in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-scripts-and-web-geoprocessing-service/m-p/1309993#M68210</link>
    <description>&lt;P&gt;Perhaps there is a timestamp used to display the message so that it does not flicker, but the suggestion above also does not work. Please see below ammended script. And I have checked that the GP parameters to return all Warnings.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;# Get the number of affected Households/Parcels&lt;BR /&gt;&lt;/SPAN&gt;countSelectedFeatures = getCountOfSelectedFeatures(cadastreSelectLayer)&lt;BR /&gt;arcpy.AddWarning(&lt;SPAN&gt;"Feeder ({0}) in transformer ID {1} will affect {2} Parcels/Households out of {3} household(s)"&lt;/SPAN&gt;.format(selectedFeederID&lt;SPAN&gt;, &lt;/SPAN&gt;transID&lt;SPAN&gt;, &lt;/SPAN&gt;countSelectedFeatures&lt;SPAN&gt;, &lt;/SPAN&gt;householdNumber))&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Delete the point layer created in order to restart the whole process&lt;BR /&gt;&lt;/SPAN&gt;arcpy.DeleteFeatures_management(pointLayer)&lt;BR /&gt;&lt;SPAN&gt;print &lt;/SPAN&gt;(result.GetMessages())&lt;BR /&gt;&lt;SPAN&gt;print &lt;/SPAN&gt;(arcpy.GetMessages(&lt;SPAN&gt;2&lt;/SPAN&gt;))&lt;BR /&gt;&lt;SPAN&gt;print &lt;/SPAN&gt;(arcpy.GetMessages())&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2023 13:01:46 GMT</pubDate>
    <dc:creator>adminCentlec</dc:creator>
    <dc:date>2023-07-20T13:01:46Z</dc:date>
    <item>
      <title>Python scripts and Web Geoprocessing Service</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-and-web-geoprocessing-service/m-p/1234458#M67803</link>
      <description>&lt;P&gt;I am trying to inform the user about what is going during a GP tool run in my web application. I have used AddMessage and other variations of this, but it is not working, the user is not informed. This is a critical final step in order to make the user aware of the results.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a different way through python to inform the user as the GP tool runs or when it is complete? As I said, all messages are ready, just that they are not appearing in the output pane of the geoprocessing window.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2022 12:55:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-and-web-geoprocessing-service/m-p/1234458#M67803</guid>
      <dc:creator>adminCentlec</dc:creator>
      <dc:date>2022-11-23T12:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts and Web Geoprocessing Service</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-and-web-geoprocessing-service/m-p/1236578#M67804</link>
      <description>&lt;DIV&gt;You'll have to use arcpy.AddMessage() in the script used to publish the GP Service and also set the &lt;A title="https://enterprise.arcgis.com/en/server/10.8/publish-services/windows/geoprocessing-service-settings-parameters.htm" href="https://enterprise.arcgis.com/en/server/10.8/publish-services/windows/geoprocessing-service-settings-parameters.htm" target="_blank" rel="noreferrer noopener"&gt;Show Messages&lt;/A&gt; service property to return the level of messaging.&lt;/DIV&gt;</description>
      <pubDate>Wed, 30 Nov 2022 20:47:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-and-web-geoprocessing-service/m-p/1236578#M67804</guid>
      <dc:creator>Bheist_esri</dc:creator>
      <dc:date>2022-11-30T20:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts and Web Geoprocessing Service</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-and-web-geoprocessing-service/m-p/1286038#M67805</link>
      <description>&lt;P&gt;Thanks, I have done this but GP service output just shows the messages for a split second and then removes/hides them. This is quite perculiar to be honest and I am not sure why it does this. On your side do the messages remain in the output pane or they also appear for a split second?&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 09:43:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-and-web-geoprocessing-service/m-p/1286038#M67805</guid>
      <dc:creator>adminCentlec</dc:creator>
      <dc:date>2023-05-05T09:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts and Web Geoprocessing Service</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-and-web-geoprocessing-service/m-p/1304027#M68056</link>
      <description>&lt;P&gt;I think that may be something the you'll need to customize with the GP Widget. I found this other Community Post that should get you pointed in the right direction.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-do-i-customize-output-messages-in-gp/td-p/844012" target="_blank"&gt;https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/wab-how-do-i-customize-output-messages-in-gp/td-p/844012&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 16:50:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-and-web-geoprocessing-service/m-p/1304027#M68056</guid>
      <dc:creator>Bheist_esri</dc:creator>
      <dc:date>2023-06-28T16:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts and Web Geoprocessing Service</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-and-web-geoprocessing-service/m-p/1309993#M68210</link>
      <description>&lt;P&gt;Perhaps there is a timestamp used to display the message so that it does not flicker, but the suggestion above also does not work. Please see below ammended script. And I have checked that the GP parameters to return all Warnings.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;# Get the number of affected Households/Parcels&lt;BR /&gt;&lt;/SPAN&gt;countSelectedFeatures = getCountOfSelectedFeatures(cadastreSelectLayer)&lt;BR /&gt;arcpy.AddWarning(&lt;SPAN&gt;"Feeder ({0}) in transformer ID {1} will affect {2} Parcels/Households out of {3} household(s)"&lt;/SPAN&gt;.format(selectedFeederID&lt;SPAN&gt;, &lt;/SPAN&gt;transID&lt;SPAN&gt;, &lt;/SPAN&gt;countSelectedFeatures&lt;SPAN&gt;, &lt;/SPAN&gt;householdNumber))&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Delete the point layer created in order to restart the whole process&lt;BR /&gt;&lt;/SPAN&gt;arcpy.DeleteFeatures_management(pointLayer)&lt;BR /&gt;&lt;SPAN&gt;print &lt;/SPAN&gt;(result.GetMessages())&lt;BR /&gt;&lt;SPAN&gt;print &lt;/SPAN&gt;(arcpy.GetMessages(&lt;SPAN&gt;2&lt;/SPAN&gt;))&lt;BR /&gt;&lt;SPAN&gt;print &lt;/SPAN&gt;(arcpy.GetMessages())&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 13:01:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-and-web-geoprocessing-service/m-p/1309993#M68210</guid>
      <dc:creator>adminCentlec</dc:creator>
      <dc:date>2023-07-20T13:01:46Z</dc:date>
    </item>
  </channel>
</rss>

