Skip to main content
Solved

Having StringReplacer write to another field in the record


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
Did this help you find an answer to your question?

3 replies

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

I think the transformer you want is the AttributeValueMapper


itay
Supporter
Forum|alt.badge.img+17
  • 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.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings