2

Can I disable a column based on another column?

Let's say I have a column to choose a field type (Short, String and so on) and a second column to choose the max length of a string. I would like to disable the second column if I've chosen a short instead of a string.

param = arcpy.Parameter("fields", "Param", "Input", "Value Table")
param.columns = [['String', 'Field Type'], ["Long", "String Length"]]

I'm using ArcGIS 10.3 for Desktop.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Oct 16, 2015 at 7:51

1 Answer 1

3

I don't think you can enable/disable a column in a ValueTable as there is no enable property for a column.

You may be able to remove a column but that would be weird behaviour for the end user.

answered Oct 16, 2015 at 8:54
1
  • 1
    Thank you. I was expecting an answer like yours. :-) However, speaking about weird behaviour... ArcGIS is full of it. I've never seen such a bad usability. No worries, I won't do that in my tool. ;-) Commented Oct 16, 2015 at 9:28

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.