FILEMAKER 10: The Script Trigger Firing Order
Saturday, December 5, 2009 at 12:23PM From Dwayne Wright - Certified FileMaker 10 Developer
WEB: www.dwaynewright.com
EMAIL: info@dwaynewright.com
TWITTER: dwaynewright
YOUTUBE: FileMakerThoughts
CHAPTER 17: Script Triggers
So you know that you can have multiple script triggers available for a layout and the objects on a layout. You can have so many, it can get confusing what actually happens and when!
Which of these FileMaker script triggers will fire first if all of them try to fire at once? Here is a list of their firing order if all of them were to try and fire at once and a quick note if they are pre / post triggers.
OnFirstWindowOpen (post)
OnLayoutLoad (post)
OnModeEnter (post)
OnRecordLoad (post)
OnObjectEnter (post)
OnObjectKeystroke (pre)
OnLayoutKeystroke (pre)
OnObjectModify (post)
OnObjectSave (pre)
OnObjectExit (pre)
OnRecordCommit (pre)
OnRecordRevert (pre)
OnModeExit (pre)
OnLastWindowClose (pre)
As you can see, the first five triggers are of the post variety. In fact, the only thing interrupting the string are the Keystroke related triggers of OnObjectKeystroke and OnLayoutKeystroke.
=
More info about the author and FileMaker in general, contact me at info@dwaynewright.com.
Reader Comments