7

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?

asked Mar 17, 2015 at 23:33
6
  • There is 'solution' by adding Filter-Value List, but it is ugly Commented 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. Commented 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 anyway Commented 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. Commented 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. Commented Mar 18, 2015 at 0:37

1 Answer 1

4

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

answered Mar 18, 2015 at 0:58
1
  • 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) Commented Mar 18, 2015 at 1:31

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.