Hi, I am using a script to change the value of a field according to an other field's value. But after each edit on the FC I need to re-run the script in the field calculator to change all the values so I want it to run the script after each edit automaticaly. Is there a way to do that?
Numbers means the coded values from the domains and the active field's name is: "konu_baslik" .
def calc(field):
if '1' in field:
return '1'
elif '2' in field:
return '2'
elif '3' in field:
return '3'
elif '4' in field:
return '4'
elif '5' in field:
return '4'
elif '6' in field:
return '4'
elif '7' in field:
return '2'
elif '8' in field:
return '2'
elif '9' in field:
return '5'
elif '10' in field:
return '5'
elif '11' in field:
return '6'
elif '12' in field:
return '7'
elif '13' in field:
return '8'
calc( !sikayet_turu! )
Thanks