Installation and New Features Guide

27
Script triggers
Enhancements to script triggers
1 Four windows script triggers are available in a new Script Triggers tab in
the File Options dialog box: OnWindowOpen, OnWindowClose,
OnFirstWindowOpen, and OnLastWindowClose.
New script triggers
1 OnFirstWindowOpen – Triggers a script to run each time you open a
window of a database file when no other windows for the file are open.
1 OnLastWindowClose – Triggers a script to run each time you close the
last window of a database file.
1 OnTabSwitch script trigger – Captures when a tab in a tab control was
selected and which tab was selected.
1 OnWindowClose script trigger – Runs a script each time a window of a
database file is closed.
1 OnWindowOpen script trigger – Runs a script each time a window of a
database file is opened.
Changed script triggers
1 OnFileClose script trigger is now OnLastWindowClose.
1 OnFileOpen script trigger is now OnFirstWindowOpen.
Functions
New functions
1 ExecuteSQL function – Executes a specified SQL statement within a
FileMaker Pro database, which can combine the results of two queries,
include dynamic parameters, and let you specify relationships
independent of the relationships graph.
1 GetHeight function – Returns the height in pixels of the content in a
container field that holds images.
1 GetThumbnail function – Returns a thumbnail image of the content in a
container field, according to specified values for width and height.
1 GetWidth function – Returns the width in pixels of the content in a
container field that holds images.