Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

Fields list is applied as follows: enter image description here

share|improve this question
up vote 6 down vote accepted

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.

share|improve this answer
I know it. But I want to be able to select more than one field. – Marcin Jul 9 '12 at 11:34
Change MultiValue from No to Yes. – artwork21 Jul 9 '12 at 11:36
Thanks, this works:) – Marcin Jul 9 '12 at 11:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.