OnFirstWindowOpen
Performs a script each time you open a window of a database file when no other windows for the file are open.
When the script runs
After the first window of a file is opened.
Modes in which the trigger can be used
OnFirstWindowOpen activates before FileMaker Pro enters a mode.
Result
None.
Compatibility
Product | Supported |
FileMaker Pro | Yes |
FileMaker Go | Yes |
FileMaker WebDirect | Yes |
FileMaker Server | Yes |
FileMaker Cloud | Yes |
FileMaker Data API | No |
Custom Web Publishing | No |
Originated in version
12.0
Notes
- In FileMaker Pro, FileMaker Go, and FileMaker WebDirect, this script trigger is activated when the first window is created for a file directly, either manually or with the Open File script step. If a file is opened with a hidden window from a relationship or a script, this script trigger doesn't activate until a window is created directly. However, performing a script in another file does not activate this script trigger in that file, even if the script creates the first window for that file. To have this script trigger activate in another file, open the other file using the Open File script step before performing the script in that file. For information about how this script trigger behaves differently for server-side scripts, see About running scripts on FileMaker Server and FileMaker Cloud.