SeedCodeComplete3

Script Triggers

What kinds of layout based script triggers are in use?

All user interface layouts make extensive use of layout based Script Triggers, and in general will probably not need to be modified too much. Fortunately these script triggers follow the same pattern across these different layouts/modules. Contacts has 7 script triggers with these general purposes:

Contact On Record Load: Initializes Global variables and fields to manage panel navigation. This trigger also fires when new records are created to put the user in Edit Mode.
Contact On Commit and Contact On Revert: Manages entering and exiting Edit Mode.
Contact On Layout Exit: Clears Gloabal variables and fields used for that layout.
Contact On Mode Enter and Contact On Mode Exit Manages entering and exiting Find Mode by navigating to the Find Panel and back.
Contact On View Switch Manages entering and exiting List View by clicking View Buttons on the Menu Bar. This trigger is used by WebDirect to fire the script as Custm Menus are not supported in Web Direct.

Can I turn script triggers off?

You can certainly turn off individual triggers by setting them not to operate in browse mode.

This keeps the trigger tied to the object in case you want to turn it back on later. If you haven't done this before, check out the section on Script Triggers in FileMaker's built in Help.

But Remember all of the above functionality is an important part of how SeedCode Complete works, so do take care when doing this.

What kinds of object based script triggers are in use?

The most common use of object based script triggers in SeedCode Complete is Type Aheads for Portal Filters and Selectors. but they are used in some other places as well.

Another common place object triggers are used are on Tab and Slide controls so we can use the On Object Modify trigger to launch a script after the tab is brought into focus. More details on this in Object Navigation.

There are other miscelaneuos triggers in place. The best way to determine if an object has a trigger attached to it or not is to turn on their visibility. In Layout Mode, choose View > Show > Script Triggers. When this is enabled you'll see a little orange scrolly thing on objects with attached triggers.

When this is enabled you'll see a little orange scrolly thing on objects with attached triggers.

(855) SEEDCODE
[email protected]
Follow us: