Add support for Table filter in Python Toolbox parameters

655
1
10-13-2017 02:05 PM
Status: Open
Labels (1)
JohnDye
Occasional Contributor III

This doesn't work.

param0 = arcpy.Parameter(
    displayName="Table",
    name="in_Table",
    datatype="GPTableView",
    parameterType="Required",
    direction="Input")
param0.filter.list = ["Table"]‍‍‍‍‍‍‍‍‍‍‍‍‍‍

It should. Please fix it.

1 Comment
AlfredBaldenweck

I would love to be able to filter by the type of table, which is apparently possible, but I can't figure out how to do it.

AlfredBaldenweck_0-1696525694791.png

My current workaround is to use updateMessages to check for XLSX in the catalogpath and then throw an error if it's not there.

This works, but if I want to use the nice fancy dropdown for the tableview parameter, I have to wade through every table and feature class in the map.

Please let us filter tables.