Creating a ValueTable with columns that have drop down choices v.2017

526
1
12-05-2017 10:59 AM
SamyBouma_Ngock1
New Contributor III

Hi,

I would like to reproduce and enhance the behavior of the Summary Statistics tool in my own tool.

Currently, the summary statistics tool provides the same choices in the statistic type drop down list regardless of the field type but throws a 000315 warning message when the selection is in contradiction with the field type (i.e. valid statistics for text field are min, max, count,, etc...).

I had high expectations when I found Duncan Hornby's article, but he did not address what I am looking for.

 

So a couple of questions:

   - Can this behavior be enhanced in the way that the drop down list updates according to the field type instead of throwing an error message?

   - I suspect the def updateParameters(self) of the validation is where everything happens but I am having a hard to figure it out. Has someone done something similar? 

Cheers 

0 Kudos
1 Reply
DanPatterson_Retired
MVP Emeritus

From the Pro documentation.. presumably there is a 10.5 equivalent

Defining parameters... value tables

Value Table in ArcPy

0 Kudos