Is there a way to have schemamapper read the name of a source table (shapefile), and populate a target attribute field with that name in the writer? Please see the attachment for illustration of question/goal.
Solved
Mapping a source filename as attribute value
Best answer by erik_jan
For each feature in the Shape files the name of the file is stored in the format attribute fme_feature_type. That attribute can be exposed in the settings of the reader feature type or by using the AttributeExposer transformer.
The value can be copied into the attribute dataSource using an AttributeManager, AttributeCopier or similar transformer.
I do not think you need a SchemaMapper transfomre for this.
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.
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.

