Question

How to get an attribute value as user parameter


I'd like to have the value of an attribute as a user parameter.

I need to make sure tables I work with comply with a schema. The schema field names are in a CSV, imported without column headers. I aggregate the attribute which leaves me with this output:

Screenshot 2022-06-10 at 18.09.50Is it possible to get the string in col0, row 1, as the default value in a user parameter to ensure my output table conforms to the schema? Thanks!


2 replies

Userlevel 2
Badge +11

Hi @bradosav, user parameters are read into FME before the CSV data. If you use a WorkspaceRunner after reading the CSV then you could make that value the parameter value in the child workspace.

thanks for the answer! I guess it's a bit convoluted to do it that way, even though it is possible.

Reply