Brian Dunning's FileMaker Custom Functions

TriggersDisable

Sets global variables to indicate that the current script is suppressing triggers.

  Average rating: 4.5 (32 votes) Log in to vote

Jeremy Bante   Jeremy Bante

https://github.com/jbante/

Share on Facebook Share on Twitter

  Sample input:
TriggersDisable
  Sample output:
1 //True, meaning that the current script is now suppressing triggers

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

TriggersDisable sets global variables to indicate that the current script is suppressing triggers. This script must be called from the context of a script; otherwise, it will not suppress triggers, and it will return False. In order to be suppressed, a script called via trigger should use the TriggersAreActive function to decide whether or not to run.

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: