Skip to main content
Solved

Having StringReplacer write to another field in the record

  • November 29, 2016
  • 3 replies
  • 21 views

Forum|alt.badge.img

I was wondering how to have a constant value write to a different field in my record using StringReplacer. In the example below, if TIM Number = 89, I would like to have the constant ELITE written into the Meter_Type field.

Best answer by itay

Another option is to use the AttributeManager with conditional values.

Hope this helps.

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

erik_jan
Contributor
Forum|alt.badge.img+23
  • Contributor
  • November 29, 2016

I think the transformer you want is the AttributeValueMapper


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • Best Answer
  • November 29, 2016

Another option is to use the AttributeManager with conditional values.

Hope this helps.


Forum|alt.badge.img
  • Author
  • November 29, 2016

I was unsuccessful doing this with the StringReplacer, so I ended up using the AttributeManager, setting the value for Meter Type using a Conditional Value for TIM Number defined in the Attribute Value column. FME Support told me that this bug using StringReplacer is fixed in the FME 2017 release.