I'm trying to read the data from one field and use it to perform calculations in order to find the data for another field. I know how to change the data of a field using the inspector tool, but how would I make that data based off of the calculations of another field.
For example, if I wanted to have Field3 = (Field1+ Field2) / 2.
You might want to take a look at attribute rules. While not part of the Pro SDK, attribute rules run Arcade scripts when edits take place. You can assign a calculation rule to Field3 that computes the value of (Field1 + Field2)/2 just as you have written above.
I hope this helps,
I don't think that will work because I need to do it as part of an add-in that uses lots if if-else statements. The add-in will take input data and then read certain fields and calculate another field based on the field it reads and the input data.
What would be the best way to do this for thousands of rows. I tried using a table search and using while(rowCursor.MoveNext()) and I read and updated within the while loop, but this took about 15 minutes to run. How could I do this faster?