0

I have built a model, as input parameter I have a 2 parameters: a Feature Layer and a Field But when I run the model, the Field-Parameter has no values to select. How can I tell the model builder, that I want the Fields from the selected Feature Layer as values in the Field parameter?

Hornbydd
44.9k5 gold badges42 silver badges84 bronze badges
asked Nov 18, 2014 at 10:12
1
  • I would look into tool validation. I think you can use this with tools authored using ModelBuilder and not just Python script tools but I am happy to be corrected. Actually I think it is an Obtained from option when you are setting Parameters on the Model Properties but tool validation is useful to know about. Commented Nov 18, 2014 at 11:49

1 Answer 1

1

Sounds like you want to derive a field from a layer, this can only be done in a script tool, it is discussed here. You will need to convert the logic of the model into python code.

answered Nov 18, 2014 at 10:50

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.