SuppressTriggers ( )

Function stats

Average user rating
260
289
9999
Support
FileMaker 10.0 +
Date posted
13 December 2010
Last updated
14 December 2010
Version
Recursive function
No

Author Info
 Jeremy Bante

10 functions

Average Rating 5.0

author_avatar



 

Function overview

Prototype

SuppressTriggers  (  )


Parameters

No parameters for this function.


Description

Tags:  Script Triggers  

TriggersAreActive checks a global variable to identify whether or not script triggers should be allowed to run. This function is best used in concert with the TriggersDisable, TriggersEnable, and TriggersReset functions.

Unfortunately, this Web site does not allow contributors to re-name or delete a contributed function. Thus the discrepancy between the page name and all references to the function on the rest of the page.

Examples

Sample input

TriggersReset


Sample output

1 //True, meaning that a triggered script should not run

 

Function code

/**
* =====================================
* TriggersAreActive
*
* PURPOSE:
* TriggersAreActive checks a global variable to identify whether or not script
* triggers should be allowed to run. This function is best used in concert with
* the TriggersDisable, TriggersEnable, and TriggersReset
* functions.
*
* RETURNS:
* False (0) if triggers should be suppressed; True (1) otherwise.
*
* PARAMETERS: none
*
* REFERENCED VARIABLES:
* $$~DISABLETRIGGERS
*
* DEPENDENCIES: none
*
* EXAMPLE (triggered script):
* If [ TriggersAreActive ]
*    # Do something
* End If
*
* HISTORY:
* MODIFIED on 2010-12-13 by jbante@supportgroup.com to use names suggested at
* filemakerstandards.org.
* CREATED on 2010-12-12 by Jeremy Bante of The Support Group (jbante@supportgroup.com).
*
* REFERENCES:
* The TriggersAreActive function: http://www.fmfunctions.com/fid/289
* The TriggersDisable function: http://www.fmfunctions.com/fid/290
* The TriggersEnable function: http://www.fmfunctions.com/fid/291
* The TriggersReset function: http://www.fmfunctions.com/fid/292
* =====================================
*/

not $$~DISABLETRIGGERS

// ===================================
/*

    This function is published on FileMaker Custom Functions
    to check for updates and provide feedback and bug reports
    please visit http://www.fmfunctions.com/fid/289

    Prototype: SuppressTriggers( )
    Function Author: Jeremy Bante (http://www.fmfunctions.com/mid/260)
    Last updated: 14 December 2010
    Version: 1.2

*/
// ===================================

 

 

 

 

 

 

 

Top Tags

Text Parsing  (31)
Date  (26)
List  (26)
Format  (23)
XML  (22)
Sql  (18)
Dev  (18)
Debug  (15)
Interface  (13)
Text  (13)
Layout  (13)
Variables  (12)
Filter  (11)
Design  (10)
Layout Objects  (8)
Timestamp  (7)