There are three columns in the attribute table.
part
,forest
with both unique IDs andfactor
with three possible values (yes, no, check).- One
forest
contains many differentpart
.
If the factor
is changed to "yes" for one part
of a forest
, the column factor
should be automatically updated to "yes" for all "parts" which are in the same "forest" and therefore share the same forest
ID.
Of course there are ways to do this manually but an automatic solution would be great as the database is huge. So basically I am looking for an automatic fill for one column, but only for the lines which share the same value in a different column.
Best Answer
If I understand you correctly, part makes no difference, only forest?
Create a function in the python editor and call it with
autofill()
when you have set some row to yes: