AnsweredAssumed Answered

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

Question asked by Samy.BoumaNgock_bcgov03 on Dec 5, 2017
Latest reply on Dec 5, 2017 by Dan_Patterson

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 

Outcomes