Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 11.0   11.1   11.2   11.3   11.4   11.5   12.0   12.1   12.2   12.3    Statistic    FMM    Blog  

Window.SetCloseTrigger

Sets close trigger.

Component Version macOS Windows Linux Server iOS SDK License
Window 12.1 ✅ Yes ❌ No ❌ No ❌ No ❌ No Free
MBS( "Window.SetCloseTrigger"; Ref; Filename; ScriptName )   More

Parameters

Parameter Description Example
Ref Pass window or web viewer reference number.
Filename The database file name where the script is located. "test.fmp12"
ScriptName The script name. "MyScript"

Result

Returns OK or error.

Description

Sets close trigger.
Informs you if a window with a reference closed or a custom web viewer was removed from the layout. FileMaker may rebuild the current layout and delete the custom web viewer.

Parameter to the script is the reference number passed here to identify the object. Please be aware that Window objects are gone when the trigger runs.

Examples

Create web viewer and set close trigger:

Set Variable [ $$web ; Value: MBS("WebView.CreateWithControl"; 0; "placeholder"; 1) ]
Set Variable [ $r ; Value: MBS("Window.SetCloseTrigger"; $$web; Get(FileName); "Closed") ]

See also

Release notes

Blog Entries

Created 20th January 2022, last changed 20th January 2022


Window.SetCloseButton - Window.SetCurrentTag

Feedback: Report problem or ask question.


Start Chat