Menu

Update object, don't initiate triggers?

2022-04-07
2022-05-04
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-04-07

    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
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2022-05-04

    Thanks for looking into it, Pierre.

    For now I'll take into account that it's a limitation.

     
    👍
    1

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.