Skip to main content
Solved

globally calculate fields with a default value

  • May 26, 2016
  • 4 replies
  • 23 views

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.

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.

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

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+12
  • 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.