Skip to main content
Question

Provide a Drop-down List of Fields in a Feature Class, Shapefile, or Feature Service

  • April 17, 2025
  • 1 reply
  • 18 views

danraleigh
Contributor
Forum|alt.badge.img+4

I am seeking to mimic a script tool in ArcGIS Pro that I’ve constructed. The script tool provides a user with a list of fields within a shapefile, feature class, or feature service once the user has supplied the file path. Once the field has been chosen, the user can then select a feature from a list of features in the dataset with information from the field selected in the previous step. This allows the user to indicate a feature to run from a dataset rather than running the entire batch of features.

 

 

I am struggling to find a way to prompt FME to assess an input file to provide that sort of list (in ArcGIS Pro this is done with the Validation page of the script tool). I’ve tinkered with incorporating User Parameters, but I feel like I’m missing something. If this sort of process is possible, I’d welcome some feedback and suggestions!

1 reply

crutledge
Enthusiast
Forum|alt.badge.img+30
  • Enthusiast
  • April 17, 2025

Hi ​@danraleigh 
I think you have entered into the world of “Scripted Selection” Parameter type under Advanced. 

FME Flow Dynamic Scripted Parameters? | Community

Links to the documentation in the post above. The tutorials are good but there are a lot of steps. This is a litttle more difficult because you first have to read the data identified by the user to then give a choice of fields then read the field content to give a choice from that content.


Read Feature Class » Generate a pick list of Fields » Read Field » Generate pick list from Field Content.

If I understand this correctly, dynamically populating your choice dropdowns/pick lists is the challenge right? 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings