Help

Table Of Contents
Script triggers reference
F
ILEMAKER PRO HELP 1187
OnWindowOpen
Triggers a script to run each time you open a window of a database file.
When the script runs
After a window is opened or after OnFirstWindowOpen (if it is selected in the Script Triggers tab) is
activated.
Modes in which the trigger can be used
OnWindowOpen activates before FileMaker Pro enters a mode.
Result
None.
Originated in
FileMaker Pro 12.0
Notes
You can also trigger a script this way when you open a window for a hidden file previously opened
via a script or relationship.
Related topics
Setting up script triggers
Setting script triggers for layouts
Setting script triggers for objects
OnWindowClose
Triggers a script to run each time you close a window of a database file.
When the script runs
Before a window is closed or before OnLastWindowClose (if it is selected in the Script Triggers tab)
is activated.
Modes in which the trigger can be used
OnWindowClose activates after FileMaker Pro exits a mode.
Result
You can use the Exit Script script step within the triggered script to return True or False.
True: The event that triggered the script proceeds.
False: The event that triggered the script is canceled.
Originated in
FileMaker Pro 12.0