ScriptTriggersClear ( )

Function stats

Average user rating
260
292
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

ScriptTriggersClear  (  )


Parameters

No parameters for this function.


Description

Tags:  Script Triggers  

TriggersReset sets global variables to indicate that script triggers should be allowed to run, regardless of any persisting instructions to the contrary from any script. This may be useful to recover from a situation where a script forgot to call TriggersEnable at the end of operation. In order to be suppressed, a script called via trigger should use the TriggersAreActive function to decide whether or not to run.

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

//no output

 

Function code

/**
* =====================================
* TriggersReset
*
* PURPOSE:
* TriggersReset sets global variables to indicate that script triggers should
* be allowed to run, regardless of any persisting instructions to the contrary
* from any script. This may be useful to recover from a situation where a
* script forgot to call TriggersEnable at the end of operation. In order to be
* suppressed, a script called via trigger should use the TriggersAreActive
* function to decide whether or not to run.
*
* RETURNS: "" (null)
*
* PARAMETERS: none
*
* REFERENCED VARIABLES:
* $$~DISABLETRIGGERS
* $$~DISABLETRIGGERS.SCRIPTS
*
* DEPENDENCIES: none
*
* HISTORY:
* MODIFIED on 2010-12-13 by Jeremy Bante of The Support Group to use names suggested at
* filemakerstandards.org.
* CREATED on 2010-12-12 by Jeremy Bante of The Support Group.
*
* 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
* =====================================
*/

Let ( [
    $$~DISABLETRIGGERS.SCRIPTS = "";
    $$~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/292

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

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

 

 

 

 

 

 

 

Top Tags

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