91
Automation Interface, Add-Ins and Tools / Re: Help changing Parent on an attribute from one class to another
« Last post by Geert Bellekens on March 28, 2026, 02:18:01 am »If you update the database, your object in memory don't know about that.
So if you have an attribute object in memory, and you call Update() it will save itself to the database, thereby overwriting the object_ID again.
So after doing a direct database updaate, you should consider your object in memory to be invalid.
Refreshing (element.Attributes.Refresh) reloads the attributes from the database.
Geert
So if you have an attribute object in memory, and you call Update() it will save itself to the database, thereby overwriting the object_ID again.
So after doing a direct database updaate, you should consider your object in memory to be invalid.
Refreshing (element.Attributes.Refresh) reloads the attributes from the database.
Geert
Recent Posts