Is it possible to simply update an object (usually with DBObject->DBUpdate() ) without activating the related triggers ('on object update')?
I'm actually once again in a case where it would be nice to have a hook right before the data is inserted or updated already (but I'd rather not overwrite the DBObject::OnUpdate() method )
I think the nicest way would be to have something like iApplicationObjectExtension::OnDBUpdate(); but like "BeforeDBUpdate()". Right before or after DBObject::DBUpdate()
Last edit: Jeffrey Bostoen 2022-04-07
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to simply update an object (usually with DBObject->DBUpdate() ) without activating the related triggers ('on object update')?
I'm actually once again in a case where it would be nice to have a hook right before the data is inserted or updated already (but I'd rather not overwrite the DBObject::OnUpdate() method )
I think the nicest way would be to have something like iApplicationObjectExtension::OnDBUpdate(); but like "BeforeDBUpdate()". Right before or after DBObject::DBUpdate()
Last edit: Jeffrey Bostoen 2022-04-07
Hello Jeffrey,
Unfortunately there are no endpoint to solve this right now, as documented here : https://www.itophub.io/wiki/page?id=latest:customization:sequence_crud#dbupdate
But we are working on a new extensibility model for 3.1 (PR #253)
Thanks for looking into it, Pierre.
For now I'll take into account that it's a limitation.