« FILEMAKER 10: Script Triggers And The Debugger Tidbit I Hadn’t Known | Main | FILEMAKER: Quick Tidbits About FileMaker Script Triggers »
Saturday
Dec052009

FILEMAKER 10: The Script Trigger Firing Order

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

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>