Skip to main content
Solved

globally calculate fields with a default value


Forum|alt.badge.img

This is probably very simple but what transformer do I use to globally update a field with a standard value. All I want to do is add the number "1" to an integer field in several feature classes within the same file geodatabase.

Thanks

Dave

Best answer by pratap

Hi,

If the target attribute field is linked to coded domain then you have to pass the coded value as constant.

If you are still facing issue then its better to send the details of codes and values and tell us which value you want pass.

View original
Did this help you find an answer to your question?

4 replies

david_r
Celebrity
  • May 26, 2016

The ExpressionEvaluator will let you do the addition.


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • May 26, 2016

it also possible to set the value on the writer.

Left click on the attribute on the writer en choose "edit value" The inputport will turn magenta.


Forum|alt.badge.img
gio wrote:

it also possible to set the value on the writer.

Left click on the attribute on the writer en choose "edit value" The inputport will turn magenta.

Thanks for the tip. I tried this but the writer ignored the input value. I entered a value of 1 in the string editor. Am I missing syntax? Another consideration is that the target field, though an integer field is linked to a coded domain value. I know that FME doesn't work well with them.


pratap
Contributor
Forum|alt.badge.img+11
  • Contributor
  • Best Answer
  • June 7, 2016

Hi,

If the target attribute field is linked to coded domain then you have to pass the coded value as constant.

If you are still facing issue then its better to send the details of codes and values and tell us which value you want pass.


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