Tech Tip: A tip for disabling triggers
PRODUCT: 4D | VERSION: 12.5 | PLATFORM: Mac & Win
Published On: April 19, 2013
A good practice when using triggers is to put the trigger code into a project method; that way, if you need to quickly disable the triggers you can simply comment out the code in the project method instead of modifying all of the table triggers.
If all of the triggers share the same project method then the global find and replace could also be used to comment out the calls to that one method; for example, the following project method:
trigger_forAllTables |
could be globally found and replaced with:
// trigger_forAllTables |
and then when it needs to be re-enabled again just globally find and replaced back to:
trigger_forAllTables |