<?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: Pulling information from a table into a parameter in a script tool in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240835#M18741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Randy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do like how you actually used the Selection field to auto populate the other 4 parameters. Using that logic, do those 4 parameters have to be visible then? I would assume that if they get auto populated from a table, then that should be the correct input and the user wouldn't have to make any corrections. So something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User selects One in the Selection parameter and then the other 4 parameters (not visible to the user), get populated with A1, A2, A3, and A4 respectively? And then used in the script tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for my workflow that I originally intended for, there would only be 4 parameters. So the tool window will look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/421946_pastedImage_1.png" style="border: 0px; margin: 2px 20px 0px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then there would be the following table in the database:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/421954_pastedImage_2.png" style="border: 0px; margin: 2px 20px 0px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to get the tool (using validation) to link the table and the 3 fields (AsBuiltType, AsBuilt Company, and ConstCompany; AsBuiltDate will be a manual entry) to be linked to Document Type, Document Company, and Construction Company. So this is the order they'd be paired (field name - Parameter): AsBuiltType - Document Type, AsBuiltCompany - Document Company, and ConstCompany - Construction Company. The idea is that the drop down menu (value list) will get populated with the values in that field. This is so that when a new company's name is added to the table, the drop down menu doesn't have to be manually updated, it'll get auto populated through tool validation. Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a disclaimer, I have never worked with tool validation so I'm new to it and any insight is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Sep 2018 17:21:43 GMT</pubDate>
    <dc:creator>VishalShah2</dc:creator>
    <dc:date>2018-09-14T17:21:43Z</dc:date>
    <item>
      <title>Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240828#M18734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on putting together a custom tool that helps populate information into four fields within each feature class in the database. The script is pretty straight forward and has no issues. My issue is I have to create 22 tools to do the same thing by each feature class and creating a value list in the parameters section of the script tool would be too cumbersome. Is it possible to have one table that can be automatically pulled right into a drop-down and the only thing I'd have to do is update that table whenever it needs to be updated?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 16:12:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240828#M18734</guid>
      <dc:creator>VishalShah2</dc:creator>
      <dc:date>2018-07-26T16:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240829#M18735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you referring to using a "value list" for selection? or is it more complicated than that?&lt;/P&gt;&lt;P&gt;Perhaps you could sketchup an example of what you mean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jul 2018 22:41:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240829#M18735</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-07-26T22:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240830#M18736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I could see the approach you want as being workable.&amp;nbsp; I would look at the updateParameters section of the ToolValidator class.&amp;nbsp; Although it doesn't take your desired approach, this thread on&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/thread/210869-conditional-drop-down-lists-tool-validator"&gt;Conditional Drop Down Lists - Tool Validator&lt;/A&gt;&amp;nbsp;may give you some ideas in using updateParameters.&amp;nbsp; Unfortunately, the blog posting mentioned in the first post is no longer available&amp;nbsp;(or not yet available) in the new ESRI blogs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I imagine you would have your users select the appropriate row in your table based on a value in the first column.&amp;nbsp; Then other column values in the selected row would populate several of your tool's option selections.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you describe how your table would be organized and how you would use the values from it in your tool?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2018 05:08:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240830#M18736</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2018-07-27T05:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240831#M18737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps something like this for the ToolValidator&amp;nbsp;class&amp;nbsp;(script tool, not python toolbox):&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
&lt;SPAN class="keyword token"&gt;class&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;ToolValidator&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;object&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="string token"&gt;"""Class for validating a tool's parameter values and controlling
&amp;nbsp; the behavior of the tool's dialog."""&lt;/SPAN&gt;

&amp;nbsp; &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;__init__&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"""Setup arcpy and the list of tool parameters."""&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;params &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetParameterInfo&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&amp;nbsp; &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;initializeParameters&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; fc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\Path\To\Test.gdb\TableTest'&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# our table with set-up data&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; fld &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Selection'&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN class="comment token"&gt;# field named 'Selection'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;params&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;filter&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;val&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; val &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; sorted&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;set&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;row&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; row &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; fld&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;params&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;value &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;params&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;filter&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;list&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# on init, set to first value in list&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt;

&amp;nbsp; &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;updateParameters&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;params&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;value&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# an option has been selected&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'C:\Path\To\Test.gdb\TableTest'&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# our table with set-up data&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; flds &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Option1'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Option2'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'Option3'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'Option4'&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# fields with values we want&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wClause &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Selection = '{}'"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;params&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;value&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="comment token"&gt;# match field 'Selection'&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; values &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; next&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;da&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SearchCursor&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; flds&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; where_clause&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;wClause&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;params&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;value &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; values&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;params&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;value &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; values&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;params&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;value &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; values&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;2&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;params&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;4&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;value &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; values&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;3&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt;

&amp;nbsp; &lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;updateMessages&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"""Modify the messages created by internal validation for each tool
&amp;nbsp;&amp;nbsp;&amp;nbsp; parameter.&amp;nbsp; This method is called after internal validation."""&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:06:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240831#M18737</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2021-12-11T12:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240832#M18738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Randy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to mimic your code but added in my field names in the def updateParameters(self): portion of the script but got an error. The field names in the table that I was to use are AsBuiltSource, AsBuiltCompany, and ConstructionCompany. The other field I need to update is a date field and thus do not need to include that bit in the Validation. As for how the parameters are laid out in my script, they are in this order: AsBuiltSource, AsBuiltCompany, AsBuiltDate, and ConstructionCompany.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would you set this up in the validation? Sorry about the delay in responding, I was out on vacation for a good bit and then swamped with some work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 19:02:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240832#M18738</guid>
      <dc:creator>VishalShah2</dc:creator>
      <dc:date>2018-09-12T19:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240833#M18739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The error that I get is that in line 14, the attribute column is not found. I'm assuming because there is no field with that name. What would I substitute 'Selection' out with?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 19:04:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240833#M18739</guid>
      <dc:creator>VishalShah2</dc:creator>
      <dc:date>2018-09-12T19:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240834#M18740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vishal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is possible that I don't completely understand your work flow and what you want to accomplish.&amp;nbsp; What I pictured was a table with a row of options.&amp;nbsp; The tool would query the table and populate a dropdown with a list of options.&amp;nbsp; When an option was selected, other values from that row would populate other sections of the tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a simplified version of the table I had pictured:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Sample table" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/421802_TableTest_tbl.png" /&gt;&lt;/P&gt;&lt;P&gt;Here's what the tool would look like that would access the table:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Tool example" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/421803_TableTest_tool.png" /&gt;&lt;/P&gt;&lt;P&gt;When the tool is initialized, the Selection box is populated with the contents of the table's Selection column, with the first row's data being the default selection.&amp;nbsp; The options associated with the Selection are displayed in the tools other boxes.&amp;nbsp; For example, when "Three" is made as the selection, the other option boxes in the tool would be populated with C1...C4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not what you had in mind, could you provide some examples of the workflow and table layout you were envisioning?&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 03:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240834#M18740</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2018-09-13T03:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240835#M18741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Randy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do like how you actually used the Selection field to auto populate the other 4 parameters. Using that logic, do those 4 parameters have to be visible then? I would assume that if they get auto populated from a table, then that should be the correct input and the user wouldn't have to make any corrections. So something like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User selects One in the Selection parameter and then the other 4 parameters (not visible to the user), get populated with A1, A2, A3, and A4 respectively? And then used in the script tool.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for my workflow that I originally intended for, there would only be 4 parameters. So the tool window will look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/421946_pastedImage_1.png" style="border: 0px; margin: 2px 20px 0px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then there would be the following table in the database:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/421954_pastedImage_2.png" style="border: 0px; margin: 2px 20px 0px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The idea is to get the tool (using validation) to link the table and the 3 fields (AsBuiltType, AsBuilt Company, and ConstCompany; AsBuiltDate will be a manual entry) to be linked to Document Type, Document Company, and Construction Company. So this is the order they'd be paired (field name - Parameter): AsBuiltType - Document Type, AsBuiltCompany - Document Company, and ConstCompany - Construction Company. The idea is that the drop down menu (value list) will get populated with the values in that field. This is so that when a new company's name is added to the table, the drop down menu doesn't have to be manually updated, it'll get auto populated through tool validation. Is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a disclaimer, I have never worked with tool validation so I'm new to it and any insight is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 17:21:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240835#M18741</guid>
      <dc:creator>VishalShah2</dc:creator>
      <dc:date>2018-09-14T17:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240836#M18742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;Thanks for the additional description of your project. To see if I am understanding correctly…&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;Regarding your question about making the other 4 parameters hidden. I think there is an option for the parameters to be hidden. Showing them could help the user be certain the correct ‘selection’ was made, but it does take space on the tool form.&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;Regarding the date, Document Creation Date would be a manual entry. So it would not depend on any selection. Would you want it to default to today’s date, the AsBuiltDate, or be left blank?&lt;/P&gt;&lt;P style="margin: 0in 0in 8pt;"&gt;I am still a bit fuzzy about the selection part. Would the user be presented with ‘Option 1’, ‘Option 2’, etc? If they select ‘Option 1’, then they would get AsBuiltType = Type1, AsBuiltCompany = Company1, and ConstCompany = Company1. I am assuming that whatever ‘Option 1’ is, it would be descriptive enough for your user to choose the best one.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt;"&gt;And once a selection is made and a date entered, these parameters will be used to populate a new in a feature class or another table?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 19:21:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240836#M18742</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2018-09-14T19:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240837#M18743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Document Creation Date would be left blank for the user to input the date that can be found on the document they have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think they'd have a selection. The idea is to point each parameter to a field in the table. So with Document Type parameter pointing to the AsBuildType field, when the user hit's the drop down menu, they'd be presented with the options of Type 1, Type 2, and Type 3. That's because those are the only options. But say the table has over a 1,000 entries with a total of 5 different types. That's pretty easy to manage. AsBuiltCompany could be in the 100s for an option. I'd like for the drop down list for Document Company to auto populate with the values within the AsBuiltCompany field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once all the parameters are entered and the user hits Ok, these will populate the appropriate fields within each feature class (10 to be exact right now, may grow).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully that helped clarify any confusions or questions you may have had.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2018 19:52:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240837#M18743</guid>
      <dc:creator>VishalShah2</dc:creator>
      <dc:date>2018-09-14T19:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240838#M18744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still trying to understand your initial selection.&amp;nbsp; My first thought was that the user would select something unique, like a project number, and then get the all other items that are associated with that project.&amp;nbsp; The project number would be a unique identifier for the row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps you are needing something like a drill down selection.&amp;nbsp; That is, select an AsBuiltType, then select the AsBuiltCompany from a dropdown who is in that type group, and then continue refining the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your table looks like this (with 2 Type 1 entries):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="as built table" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/422163_asbuilt1.png" /&gt;&lt;/P&gt;&lt;P&gt;Then your tool could present the 2 companies classified as Type 1.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="as built tool" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/422164_asbuilt2.png" /&gt;&lt;/P&gt;&lt;P&gt;Is this what you would like to accomplish?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2018 06:05:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240838#M18744</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2018-09-17T06:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240839#M18745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Randy,&lt;/P&gt;&lt;P&gt;While the drill selection would be nice, ideally, I'd like to provide all options in the column. So even if you select Type 1 in Document Type, the user would still get Company 1-4 in Document Company. The catch is this, this table will grow and there will be several entries that are the same in some fields. Can they be summed up in the validation of the script tool and then presented in the drop down menu?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 17:34:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240839#M18745</guid>
      <dc:creator>VishalShah2</dc:creator>
      <dc:date>2018-09-19T17:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240840#M18746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would the ProjectID be unique?&amp;nbsp; If so, this would be&amp;nbsp;the selection field, and the tool would pull the other fields on that row.&amp;nbsp; The important thing would be a unique ID that makes sense to the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The growth of the table should not be an issue, nor the duplication of entries.&amp;nbsp; The tool reads the table when it is first run and when the user makes a change.&amp;nbsp; You would want to make certain that wherever the tool is used, it will have access to the table.&amp;nbsp; Its location&amp;nbsp;could be hardcoded into the tool, or you could add&amp;nbsp; a&amp;nbsp;box in the tool where the user selects which table to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 18:00:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240840#M18746</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2018-09-19T18:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240841#M18747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Project ID would be unique, but I'm not going for making a selection based on an unique entry. When the user opens the tool, I'd want them to have blank parameters and when they hit any drop down menu, it'll give them all of the entries within the table for the associated column. This is so that the user does not have to go in order to drill down or anything. Hopefully that made a bit more sense. Sometimes the user won't have the information for one of the parameters and so with that, they'd have to leave that parameter blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 18:22:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240841#M18747</guid>
      <dc:creator>VishalShah2</dc:creator>
      <dc:date>2018-09-19T18:22:29Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240842#M18748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What question would the user need to answer first?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 18:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240842#M18748</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2018-09-19T18:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240843#M18749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you referring which parameter the user would need to fill in first? If so, it wouldn't matter. Every parameter would have their own values and the user can enter in any order they'd like. Unless that isn't an option?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 19:35:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240843#M18749</guid>
      <dc:creator>VishalShah2</dc:creator>
      <dc:date>2018-09-19T19:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling information from a table into a parameter in a script tool</title>
      <link>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240844#M18750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If&amp;nbsp;the user starts by selecting a non-unique identifier, like the AsBuiltCompany, then the tool would need to have the user drill down to select the unique row.&amp;nbsp; If the second selection was for ProjectID, then the tool would have a unique row and could populate the remaining choices.&amp;nbsp; To be able to code the tool, there would need to be a specific&amp;nbsp;order to the selections the user makes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2018 18:49:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/pulling-information-from-a-table-into-a-parameter/m-p/240844#M18750</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2018-09-20T18:49:48Z</dc:date>
    </item>
  </channel>
</rss>

