I am trying to have a list of strings to pass as parameter to my script:
enter image description here
when I start the script it displays:
enter image description here
With "Add Value' button disabled. What am I missing here?
-
There is 'solution' by adding Filter-Value List, but it is uglyFelixIP– FelixIP2015年03月18日 00:11:49 +00:00Commented Mar 18, 2015 at 0:11
-
I was thinking that you wanted to enter multiple free format strings rather than choosing them from a list. Tool validation may be of assistance but will still not be pretty.PolyGeo– PolyGeo ♦2015年03月18日 00:20:20 +00:00Commented Mar 18, 2015 at 0:20
-
Yes I do want free format strings, using Value List was just an interim solution and I don't like it. This is about fixing missing paths in old mxds anywayFelixIP– FelixIP2015年03月18日 00:29:05 +00:00Commented Mar 18, 2015 at 0:29
-
I've not done this but perhaps it can work. Use a second parameter to enter a single value string parameter and use tool validation to use that being entered to trigger update of your separate multi value string parameter.PolyGeo– PolyGeo ♦2015年03月18日 00:32:05 +00:00Commented Mar 18, 2015 at 0:32
-
There appears to be another approach that incorporates ModelBuilder at gis.stackexchange.com/questions/17821/… It seems a little unintuitive but sounds like it may work and be simpler than tool validation.PolyGeo– PolyGeo ♦2015年03月18日 00:37:18 +00:00Commented Mar 18, 2015 at 0:37
1 Answer 1
Use the "Any Value" data type instead of the "String" data type. I have no idea why multivalue strings don't work, but it's very counterintuitive...
Script properties Script tool GUI
-
I am accepting this although it was one of the solutions I've checked. I was looking for true string inputs because they are not enclosed in ' symbols, even if there are \ symbols inside the string. This is convenient when working with folders (non-existing things from old mxds)FelixIP– FelixIP2015年03月18日 01:31:27 +00:00Commented Mar 18, 2015 at 1:31
Explore related questions
See similar questions with these tags.