<?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: 10.1 List in Value Table in Python Toolbox in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723974#M56039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Richard&lt;BR /&gt;&lt;BR /&gt;Many thanks for your advice and links - really helpful.&lt;BR /&gt;&lt;BR /&gt;While I admit I am not a python expert I have created scripts to automate many of our workflows and have included validation scriptswith these so have more than a basic knowledge.&lt;BR /&gt;&lt;BR /&gt;What I am hoping to achieve is a combination of using a featureset and recordset or attribute lists to add multiple species to a ecology habitat type...the user will click a point to add a habitat type which can be from a feature template or a list parameter...the habitat type selected will determine the species list dropdown - i can do this already using the vaildation script to change the species tick list...BUT...if possible I would really like to also include an abundance attribute (D, A, F, O, R) for each species and this is not possible at the moment as the value list defaults to a ticklist - do you know if it is possible to create a value table for string parameters?&lt;BR /&gt;&lt;BR /&gt;or would I be better off going the .net route? if so where is the best place to get started?&lt;BR /&gt;&lt;BR /&gt;Any pointers are much appreciated.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that the validation for the second combobox drop down uses a cursor to get the value list.&amp;nbsp; The drop down list can be modified at runtime with string values.&amp;nbsp; I have a sample tool with two coordinated drop downs at work, but cannot access it at the moment.&amp;nbsp; In any case, it should be possible using either the tool or .Net as long as you don't need to continue expanding the interface with a lot more runtime updates.&amp;nbsp; As I said, .Net works much better for many controls that interact with your databases at runtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A value table of multiple columns does not work as far as I know in the tool.&amp;nbsp; At the very least I never found any documentation that explained how to get the tool to emulate such things as the Sort tool table parameters. .Net can handle it with listbox or datagrid tools.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Sep 2013 22:57:55 GMT</pubDate>
    <dc:creator>RichardFairhurst</dc:creator>
    <dc:date>2013-09-28T22:57:55Z</dc:date>
    <item>
      <title>10.1 List in Value Table in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723965#M56030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to create a Python Toolbox in ArcGIS 10.1 and can't seem to replicate something like what I see in the Summary Statistics tool where the user builds a Value Table that contains a list of Fields and then within the table the user must pick from a list of valid Statistic types (SUM, MEAN, etc).&amp;nbsp; Anyone have an idea or experience doing this?&amp;nbsp; Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2012 02:35:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723965#M56030</guid>
      <dc:creator>GeorgeRaber</dc:creator>
      <dc:date>2012-05-02T02:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 List in Value Table in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723966#M56031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I am trying to create a Python Toolbox in ArcGIS 10.1 and can't seem to replicate something like what I see in the Summary Statistics tool where the user builds a Value Table that contains a list of Fields and then within the table the user must pick from a list of valid Statistic types (SUM, MEAN, etc).&amp;nbsp; Anyone have an idea or experience doing this?&amp;nbsp; Thanks.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, adding a drop-down of keywords is not supported at the moment in a Python toolbox value table parameter.&amp;nbsp; The way it's implemented right now, the closest that can be done would be to validate the column in updateMessages and add messages to the parameter indicating the choices.&amp;nbsp; Admittedly that's far from ideal.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to create an &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;exact&lt;/SPAN&gt;&lt;SPAN&gt; match of the Summary Statistic tool's value table parameter that is a little easier.&amp;nbsp; You could mine the parameter from the tool using the arcpy.GetParameterInfo function and use that in python toolbox tool's getParameterInfo.&amp;nbsp; Something like this below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; def getParameterInfo(self):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in_table = arcpy.Parameter(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="in_table",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; displayName="Input Table",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; datatype="Table View",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; direction="Input",
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameterType="Required")
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stats_field = arcpy.GetParameterInfo("Statistics_analysis")[2]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; stats_field.parameterDependencies = [in_table.name]

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return [in_table, stats_field]
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Dave&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:57:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723966#M56031</guid>
      <dc:creator>DavidWynne</dc:creator>
      <dc:date>2021-12-12T06:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 List in Value Table in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723967#M56032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, are there any progress in this matter? I interested in realization "Obtained from" for multiple values. Like in "Topo to raster" for feature and Z-field. Sorry for bad english.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Nick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 10:01:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723967#M56032</guid>
      <dc:creator>NikolayVladimirovich</dc:creator>
      <dc:date>2012-12-26T10:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 List in Value Table in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723968#M56033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Dave.&amp;nbsp; I will have to try that out.&amp;nbsp; George, there is also a summary statistics tool in the statistics toolbox that you might be interested in.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Summary_Statistics/00080000001z000000/"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Summary_Statistics/00080000001z000000/&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Dec 2012 13:24:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723968#M56033</guid>
      <dc:creator>MelanieMaguire</dc:creator>
      <dc:date>2012-12-26T13:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 List in Value Table in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723969#M56034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is a good quick fix, but I would very much like the functionality available to replicate any tool GUI behavior in a python toolbox, especially the ability to have the user select values from a multivalue string list that gets returned as a list.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 19:55:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723969#M56034</guid>
      <dc:creator>JamieKass</dc:creator>
      <dc:date>2013-03-01T19:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 List in Value Table in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723970#M56035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Still no answer?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Mar 2013 11:25:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723970#M56035</guid>
      <dc:creator>NikolayVladimirovich</dc:creator>
      <dc:date>2013-03-12T11:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 List in Value Table in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723971#M56036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Appreciate this is an old thread but any progress on this? has it been solved in 10.2?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have looked at the help menus but it doesn't give any more information than 10.1 version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If possible I would like a 2 column input table - column 1 will be a habitat type selected from a dropdown and then column 2 would be a species selected from another dropdown whose values would change depending on the habitat selected for column 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 08:29:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723971#M56036</guid>
      <dc:creator>TimDonoyou</dc:creator>
      <dc:date>2013-09-27T08:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 List in Value Table in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723972#M56037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here are two blogs on the subject.&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2011/08/25/generating-a-choice-list-from-a-field/"&gt;Generating a choice list from a field.&lt;/A&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;A href="http://blogs.esri.com/esri/arcgis/2012/07/16/generating-a-multivalue-choice-list/"&gt;Generating a multivalue choice list.&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; I know there was another blog that laid the process out better that I used, but I have not been able to find it so far.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Generally interactive list dependencies are handled in the tool Validation script.&amp;nbsp; I have done this in the past and created tools where user interaction with one component of a tool updated a choice list in another part of the tool.&amp;nbsp; It worked OK when I did this for a two field dependency.&amp;nbsp; You have to be pretty skilled at Python to make it work really well since once you understand the principles there are many subtle adjustments that can customize the list behaviors beyond what the blogs cover.&amp;nbsp; Testing and modifying the tool is not well supported so I am not willing to instruct a Python novice on how to set it up and customize it through the forum.&amp;nbsp; Get comfortable with Python before attempting this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the principles for modifying the tool validation do not scale well as you make your tool increasingly complex.&amp;nbsp; When I got to about 7 field interactions on a single tool I needed over 700 lines of validation code to make the interactions work the way I wanted.&amp;nbsp; The performance of the tool tanked to the point where it took 5 to 10 minutes just to load the tool for editing and it took minutes to run.&amp;nbsp; At that point I abandoned the tool and ended up going to .Net Add-ins.&amp;nbsp; .Net has no problem with very complex forms, gave me a lot more interface options and performs great.&amp;nbsp; So for really involved user interfaces that go beyond simple two field interactions you should create add-ins with .Net that use Windows forms and UI components.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Sep 2013 15:54:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723972#M56037</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-09-27T15:54:53Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 List in Value Table in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723973#M56038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Richard&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for your advice and links - really helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While I admit I am not a python expert I have created scripts to automate many of our workflows and have included validation scriptswith these so have more than a basic knowledge.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I am hoping to achieve is a combination of using a featureset and recordset or attribute lists to add multiple species to a ecology habitat type...the user will click a point to add a habitat type which can be from a feature template or a list parameter...the habitat type selected will determine the species list dropdown - i can do this already using the vaildation script to change the species tick list...BUT...if possible I would really like to also include an abundance attribute (D, A, F, O, R) for each species and this is not possible at the moment as the value list defaults to a ticklist - do you know if it is possible to create a value table for string parameters?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or would I be better off going the .net route? if so where is the best place to get started?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any pointers are much appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Sep 2013 21:04:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723973#M56038</guid>
      <dc:creator>TimDonoyou</dc:creator>
      <dc:date>2013-09-28T21:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 List in Value Table in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723974#M56039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Richard&lt;BR /&gt;&lt;BR /&gt;Many thanks for your advice and links - really helpful.&lt;BR /&gt;&lt;BR /&gt;While I admit I am not a python expert I have created scripts to automate many of our workflows and have included validation scriptswith these so have more than a basic knowledge.&lt;BR /&gt;&lt;BR /&gt;What I am hoping to achieve is a combination of using a featureset and recordset or attribute lists to add multiple species to a ecology habitat type...the user will click a point to add a habitat type which can be from a feature template or a list parameter...the habitat type selected will determine the species list dropdown - i can do this already using the vaildation script to change the species tick list...BUT...if possible I would really like to also include an abundance attribute (D, A, F, O, R) for each species and this is not possible at the moment as the value list defaults to a ticklist - do you know if it is possible to create a value table for string parameters?&lt;BR /&gt;&lt;BR /&gt;or would I be better off going the .net route? if so where is the best place to get started?&lt;BR /&gt;&lt;BR /&gt;Any pointers are much appreciated.&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;BR /&gt;Tim&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that the validation for the second combobox drop down uses a cursor to get the value list.&amp;nbsp; The drop down list can be modified at runtime with string values.&amp;nbsp; I have a sample tool with two coordinated drop downs at work, but cannot access it at the moment.&amp;nbsp; In any case, it should be possible using either the tool or .Net as long as you don't need to continue expanding the interface with a lot more runtime updates.&amp;nbsp; As I said, .Net works much better for many controls that interact with your databases at runtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A value table of multiple columns does not work as far as I know in the tool.&amp;nbsp; At the very least I never found any documentation that explained how to get the tool to emulate such things as the Sort tool table parameters. .Net can handle it with listbox or datagrid tools.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Sep 2013 22:57:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723974#M56039</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-09-28T22:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 List in Value Table in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723975#M56040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this is an old post, but I have been struggling with this as well and wanted to post a solution.&amp;nbsp; I was able to figure out a very clunky workaround that does allow you to create your own drop down.&amp;nbsp; In my case, I did not actually use a "Field" value for the first part of the drop down but rather a list of Land use values derived from an input table's field values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By using suggestions from David Wynne above, I was able to "trick" the GP framework with a Python toolbox.&amp;nbsp; I made a copy of the Summary Statistics parameter as suggested, then modified the parameter filter lists like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;parameters[7].filters[1].list = ['some_list', ...]&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the relevant code:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# global var
CURVE_NUMS = [[u'Agricultural', 30.0, 58.0, 71.0, 80.0, 30.0], ...]# more values ommitted
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; def getParameterInfo(self):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fmap = arcpy.GetParameterInfo("Statistics_analysis")[2]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; def updateParameters(self, parameters):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Modify the values and properties of parameters before internal
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; validation is performed.&amp;nbsp; This method is called whenever a parameter
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; has been changed."""
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if parameters[4].value:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if parameters[4].valueAsText != LULC_FIELD and not parameters[6].altered:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; setattr(sys.modules[__name__], LULC_FIELD, parameters[4].valueAsText)

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; with arcpy.da.SearchCursor(parameters[3].valueAsText, [parameters[4].valueAsText]) as srows:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lulc_vals = sorted(list(set([str(r[0]) for r in srows]))) # get land use values from field

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameters[6].values = CURVE_NUMS

&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # create dummy table
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameters[7].value = [[l, ' '] for l in lulc_vals]&amp;nbsp; #assign a default of " " so the user can fill in drop down
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameters[7].filters[1].list = [r[0] for r in CURVE_NUMS]&amp;nbsp; # IMPORTANT, update the filter list from summary stats to your own list


&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="value_table1.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/127416_value_table1.PNG" style="width: 620px; height: 358px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the drop down:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="value_table2.PNG" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/127417_value_table2.PNG" style="width: 620px; height: 439px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not customizable, as you can only use the two columns and you cannot rename the parameter, but it does work.&amp;nbsp; Hopefully Esri supports this behavior in the future.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be nice if you could set a list filter for multiple columns like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;parameters&lt;I&gt;.filter.list = [[list1,...], [list2]]&lt;/I&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 06:57:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723975#M56040</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-12T06:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 List in Value Table in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723976#M56041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you tell me how to make a parameter like this as I circled as below? I need to a parameter can be used to show a table content? Thanks.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/256442_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Nov 2016 18:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723976#M56041</guid>
      <dc:creator>JasonXue</dc:creator>
      <dc:date>2016-11-02T18:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 List in Value Table in Python Toolbox</title>
      <link>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723977#M56042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This supported at 10.3 and later.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/defining-parameters-in-a-python-toolbox.htm#ESRI_SECTION1_E2BAA5D4440D41D6AAB948922186905A" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/defining-parameters-in-a-python-toolbox.htm#ESRI_SECTION1_E2BAA5D4440D41D6AAB948922186905A"&gt;Defining parameters in a Python toolbox—Help | ArcGIS for Desktop : Creating value table parameters&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2016 02:30:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/10-1-list-in-value-table-in-python-toolbox/m-p/723977#M56042</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2016-11-26T02:30:47Z</dc:date>
    </item>
  </channel>
</rss>

