Skip to main content
Question

Creating a SchemaFeature and mapping values to it

  • October 19, 2017
  • 3 replies
  • 15 views

Forum|alt.badge.img+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,

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

david_r
Celebrity
  • 8394 replies
  • October 19, 2017
Your screenshot isn't visible...

Forum|alt.badge.img+1
  • Author
  • 271 replies
  • October 19, 2017

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,

david_r
Celebrity
  • 8394 replies
  • October 19, 2017

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: