Generic python script tool that provides values for a field based on another,
In the screenshot below, I got a table for two fields F1 and F2.
Attachment 23653
The user is supposed to enter the values in F1 while F2 is supposed to be calculated based on the values listed on the above table
For example, if a record is filled with A3 in F1 then its corresponding value in F2 should be B3.
Attachment 23654
This is like IF-THEN scenario! But as the source table that contain F1 and F2 is dynamic, then the script tool is expected to be generic to read the values of F1 and then to stick their corresponding values in F2.
The “join” tool could be an option but achieves not exactly what I want to do. I need the F2 to be physical part of the attribute table but not coming from the Join
Thank you
Best
Jamal
In the screenshot below, I got a table for two fields F1 and F2.
Attachment 23653
The user is supposed to enter the values in F1 while F2 is supposed to be calculated based on the values listed on the above table
For example, if a record is filled with A3 in F1 then its corresponding value in F2 should be B3.
Attachment 23654
This is like IF-THEN scenario! But as the source table that contain F1 and F2 is dynamic, then the script tool is expected to be generic to read the values of F1 and then to stick their corresponding values in F2.
The “join” tool could be an option but achieves not exactly what I want to do. I need the F2 to be physical part of the attribute table but not coming from the Join
Thank you
Best
Jamal