6

My goal is to get a list of fields choosen by an user from existing fields in feature class. I think that I can show all fields in Field Mappings dialog, an user deletes unwanted fields and I get a required list.

The problem is how to populate Field Mappings when adding a feature class as a first parameter. I can't select anything in 'Obtained from' property.
The code self.params[1].parameterDependencies = [0] in updateParameters function does't work in this case (it worked when 'Field' parameter data type was chosen).

What should I use to automatically populate Field Mappings when filling first parameter?


EDIT:
Fields list is applied as follows: enter image description here

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Jul 9, 2012 at 11:20

1 Answer 1

7

Under your Fields to Choose option, change it to Field instead of Field Mappings. That will give you a list of the feature layer fields.

answered Jul 9, 2012 at 11:32
2
  • I know it. But I want to be able to select more than one field. Commented Jul 9, 2012 at 11:34
  • 1
    Change MultiValue from No to Yes. Commented Jul 9, 2012 at 11:36

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.