Skip to main content
Solved

Having StringReplacer write to another field in the record

  • Nov 29, 2016 6:38 PM UTC
  • 3 replies
  • 76 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.

View original
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+26
  • Contributor
  • Nov 29, 2016 6:46 PM UTC

I think the transformer you want is the AttributeValueMapper


itay
Supporter
Forum|alt.badge.img+19
  • Supporter
  • Best Answer
  • Nov 29, 2016 7:07 PM UTC

Another option is to use the AttributeManager with conditional values.

Hope this helps.


Forum|alt.badge.img
  • Author
  • Nov 29, 2016 9:27 PM UTC

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.