Question

Creating a SchemaFeature and mapping values to it

  • 19 October 2017
  • 3 replies
  • 0 views

Badge +1

Hi

I have managed to create new attributes for a SchemaFeature:

 

And when I set the Excel Writer Schema Sources to "Schema From Schema Feature" I am outputting an excel spreadsheet with the new column headers as I require.

 

 

However, I can't work out how to populate these column headers! I tried to populate them in AttributeManager like so:

 

 

But then in the excel spreadsheet the values of the column headers replaced the column headers themselves.

 

 

I seem to be missing one vital step here but I can't work out what it is.

 

Thanks,


3 replies

Userlevel 5
Your screenshot isn't visible...
Badge +1

Unfortunately my computer won't let me copy screenshots so I will have to type what I've done (see below).

I can create the new column headers using the AttributeCreator with the parameters as such:

 

New AttributeAttribute Valueattribute{0}.name@Value(_candidates{0}.Node_Label)_Distanceattribute{0}.fme_data_typefme_decimal(10,2)attribute{1}.name@Value(_candidates{1}.Node_Label)_Distanceattribute{1}.fme_data_typefme_decimal(10,2)attribute{2}.name@Value(_candidates{2}.Node_Label)_Distanceattribute{2}.fme_data_typefme_decimal(10,2)

But I can't work out how to populate the new attributes names with the actual values (which are coming from another list).

 

Thanks,
Userlevel 5

Unfortunately my computer won't let me copy screenshots so I will have to type what I've done (see below).

I can create the new column headers using the AttributeCreator with the parameters as such:

 

New AttributeAttribute Valueattribute{0}.name@Value(_candidates{0}.Node_Label)_Distanceattribute{0}.fme_data_typefme_decimal(10,2)attribute{1}.name@Value(_candidates{1}.Node_Label)_Distanceattribute{1}.fme_data_typefme_decimal(10,2)attribute{2}.name@Value(_candidates{2}.Node_Label)_Distanceattribute{2}.fme_data_typefme_decimal(10,2)

But I can't work out how to populate the new attributes names with the actual values (which are coming from another list).

 

Thanks,
For screenshots, try uploading to e.g. imgur.com and inserting the link here:

 

Reply