Attribute Rule to Update a Field based on edit to another Field

1734
5
Jump to solution
04-23-2021 01:28 PM
by Anonymous User
Not applicable

Hello,

I am new to arcade expressions and I am attempting to make a new attribute rule for a Stream polyline feature class. My goal is to track when a features name has changed. Where, if the Stream Name field (Str_Name) is updated, then another field (NameChange) within the same feature class table is updated to say Yes.

I have looked at some other resources and think that I am close, but I keep getting "False" instead of Yes or No.

Here is a snip of the attribute rule. I am using an Immediate Calculation Rule.

JOrozco_0-1619209472184.png

Any help would be appreciated.

 

Thanks!

0 Kudos
2 Solutions

Accepted Solutions
by Anonymous User
Not applicable

I was. I have since figured it out after messing around. Using some logic and Return and a string. 

Thanks! 

View solution in original post

0 Kudos
by Anonymous User
Not applicable

JOrozco_0-1619212770178.png

 Sure, no problem

View solution in original post

5 Replies
JoeBorgione
MVP Emeritus

Are you basing your expression on this post from  @HusseinNasser2 ?

That should just about do it....
0 Kudos
by Anonymous User
Not applicable

I was. I have since figured it out after messing around. Using some logic and Return and a string. 

Thanks! 

0 Kudos
JoeBorgione
MVP Emeritus

care to share?

That should just about do it....
0 Kudos
by Anonymous User
Not applicable

JOrozco_0-1619212770178.png

 Sure, no problem

JoeBorgione
MVP Emeritus

Simple and elegant!  I've never had occasion to use the $orginalfeature global, but it looks like it can be very helpful.

That should just about do it....
0 Kudos