Hi everybody,
I am currently trying to create an attribute rule that helps me to save a features data to an "archive" feature class when deleting that specific feature. I thought this would be possible with the new "edit" keyword but somehow my arcade code isn't working how i expect it to. Has anyone an idea what could be the problem?
Settings:
Attribute-Rule - Calculation
Update behaviour - Checked Deleting Box
Code:
return {
'edit': [{
'className': 'ArchiveFeatureClass',
'adds': [{
'attributes': {
... 'attributeIWantToCopy': $feature.attributeIWantToCopy...
},
'geometry': Geometry($feature)
}]
}]
}
PS: In this case my archive feature class has the same fields like the class from which I want to copy data when deleting a feature.