Help

Table Of Contents
Creating a database
F
ILEMAKER PRO HELP 162
Note If a snapshot link is created from a database to which any of the above script triggers are
assigned, the snapshot link will open and close as described in the table above.
3. Click OK to save your changes, or click another tab to set additional file options.
Related topics
Creating a FileMaker Pro file
Select To
OnFirstWindowOpen Run a script each time you open a window of a database file when no other
windows for the file are currently open. The script is triggered after the first
window of a file is open.
Click Specify to choose or create the script you want to use.
Note Although this is typically the first time you open a file, you can also
trigger a script this way when you open a window for a hidden file
previously opened via a script or relationship.
For more information, see OnFirstWindowOpen. For information about
operations that do not activate script triggers, see Changing object data
without activating script triggers.
OnLastWindowClose Run a script each time you close the last open window of a database file.
The script is triggered before the last window of a file is closed.
Click Specify to choose or create the script you want to use.
Note The script will run even if the file itself remains open, for example if it
is referenced by another file with open windows. The closing script will be
performed each time the last open window of the specified file is closed.
For more information, see OnLastWindowClose. If the script executed by
the OnLastWindowClose script trigger returns a False value, the file will not
close.
OnWindowOpen Run a script each time you open a window of a database file. The script is
triggered after a window is opened or after OnFirstWindowOpen (if it is
selected in the Script Triggers tab) is activated.
Click Specify to choose or create the script you want to use.
Note You can also trigger a script this way when you open a window for a
hidden file previously opened via a script or relationship.
For more information, see OnWindowOpen. For information about
operations that do not activate script triggers, see Changing object data
without activating script triggers.
OnWindowClose Run a script each time you close a window of a database file. The script is
triggered before a window is closed or before OnLastWindowClose (if it is
selected in the Script Triggers tab) is activated.
Click Specify to choose or create the script you want to use.
Note The script will run even if the file itself remains open, for example if it
is referenced by another file with open windows. The closing script will be
performed each time a window of the specified file is closed.
For more information, see OnWindowClose. If the script executed by the
OnWindowClose script trigger returns a False value, the file will not close.