<?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: Parameter Informative messages in Python Toolboxes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/parameter-informative-messages-in-python-toolboxes/m-p/1431558#M70559</link>
    <description>&lt;P&gt;I don't think there is a way to change normal messaging outside of using the tool's metadata.&lt;/P&gt;&lt;P&gt;I think there may be an idea to add metadata inside the toolbox, but I don't remember where it is.&lt;/P&gt;&lt;P&gt;However. It sounds like you have an excel file and then it checks for a sheet inside that's named like "January" or something. Why not just make that parameter a Table parameter? There isn't a default filter for it, but you can use updateMessages() to validate like&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;if '.xlsx' not in parameters[0].valueAsText:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; parameters[0].setErrorMessage("Must be an Excel sheet.")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This way the user knows exactly which sheet they're using, and you don't have to guess about it.&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2024 13:55:22 GMT</pubDate>
    <dc:creator>AlfredBaldenweck</dc:creator>
    <dc:date>2024-05-10T13:55:22Z</dc:date>
    <item>
      <title>Parameter Informative messages in Python Toolboxes</title>
      <link>https://community.esri.com/t5/python-questions/parameter-informative-messages-in-python-toolboxes/m-p/1429024#M70558</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;Using an ArcGIS Pro 3.1 python toolbox, I am trying to get a parameter information message changed dynamically in the code using the updateMessages function.&lt;/P&gt;&lt;P&gt;I can set an error message, or warning successfully, but I can't seem to find a way to set just an information message. I don't think the ID message supports non errors or warnings either?&lt;/P&gt;&lt;P&gt;The use case is a user chooses a spreadsheet to import using a parameter. Upon the spreadsheet file being chosen the code opens the spreadsheet and confirms the month of data being imported. I would like to put an information message on the parameter saying "Spreadsheet X Validated. May 2024 data will be imported".&lt;/P&gt;&lt;P&gt;Is this possible? - I can't seem to find anything that suggests it is.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 07:06:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/parameter-informative-messages-in-python-toolboxes/m-p/1429024#M70558</guid>
      <dc:creator>steveb23</dc:creator>
      <dc:date>2024-05-10T07:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Informative messages in Python Toolboxes</title>
      <link>https://community.esri.com/t5/python-questions/parameter-informative-messages-in-python-toolboxes/m-p/1431558#M70559</link>
      <description>&lt;P&gt;I don't think there is a way to change normal messaging outside of using the tool's metadata.&lt;/P&gt;&lt;P&gt;I think there may be an idea to add metadata inside the toolbox, but I don't remember where it is.&lt;/P&gt;&lt;P&gt;However. It sounds like you have an excel file and then it checks for a sheet inside that's named like "January" or something. Why not just make that parameter a Table parameter? There isn't a default filter for it, but you can use updateMessages() to validate like&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;if '.xlsx' not in parameters[0].valueAsText:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; parameters[0].setErrorMessage("Must be an Excel sheet.")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This way the user knows exactly which sheet they're using, and you don't have to guess about it.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2024 13:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/parameter-informative-messages-in-python-toolboxes/m-p/1431558#M70559</guid>
      <dc:creator>AlfredBaldenweck</dc:creator>
      <dc:date>2024-05-10T13:55:22Z</dc:date>
    </item>
  </channel>
</rss>

