Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
Now there are a lot of Bulk Events that will not trigger scripts. You have Spell Checking - even though you may modify a field it won't have that script trigger run if you have an OnObjectModify. Find and Replace, same thing. Import, Relookup, Replace Field Contents, if you're running an AppleScript on multiple records, not just on one record and if you Refresh the window. These things will not actually trigger a script trigger and for a good reason. You don't want to have all these script triggers, you know, showing Custom Dialog when you're going through a Replace Field Contents and it's triggered on each record, you want it just to go through and do it so they've made exceptions for these. There are also some Indirect Operations that will not trigger scripts, only Direct Operations trigger scripts, so here are some examples. Scripts trigger only from an object on the current layout, so if you have two layouts and you have the same field on both layouts, but only on one layout do you have the script trigger, modifying it on the first layout that doesn't have the script trigger won't make that script trigger run. You have to put the trigger on both layouts. It's a layout-based feature. You have to go ahead and put it on every object, so if you have a field 10 times on 10 different layouts and you wanted to have the script trigger run all the time you have to have that script trigger on each of those fields on each of those layouts. Show Custom Dialog will not, if you have a field in there that you're entering into, it will not trigger a script trigger. Even though you're modifying that field it won't do it. Then there are some script steps like Set Field, Set Field by Name and Set Web Viewer that you can run on essentially fields, in the case of Set Field, on a field that's not on the Current Layout, so even if it's on the Current Layout, Set Field won't trigger a script trigger because it doesn't require that field to be on the layout and it's just an exception that I think you'll find is a good reason not to run that trigger. It's also important and may be obvious, Guests trigger scripts independently. So if you have two people looking at a Multi-User solution and one triggers, you know, a script by modifying a field, Guest 2 is not going to have that same trigger run, that same script run. It only runs on the Guest machine. And, of course, any changes you make to Schema will not trigger a script either. And let's talk about interaction with other scripts. If a script is paused or none is running, the triggered script will run at the next idle time. That's usually immediately, because scripts run so fast in general, but it could be a while if the script takes a long time to run. Now, if multiple scripts are triggered it gets a little complicated depending on the combination so you really need to test that thoroughly, but we're going to take a look at the online Help to see the order of operations for script triggers. So we're going to open up our Online Help and you'll see the title is Setting Up Script Triggers and there's a lot of information in here about, you know, you saw already this on the slide but down here, Timing of script triggers. It'll tell you the order in which, let's say, you have two script triggers triggered at the same time. Well this is the order in which they will actually run, so it's important to, you know, not necessarily memorize this but to know how to find it, so you can go, oh, that's why that's happening; or, if I do this and this happens this may not work the way I wanted or it will work perfectly. So, make sure you check out that. And what we're going to do in the next section is look at specific definitions of each one of these script trigger types.
| Course: | FileMaker Pro 11: Advanced |
| Author: | John Mark Osborne |
| SKU: | 34140 |
| ISBN: | 1-936334-36-4 |
| Release Date: | 2010-07-09 |
| Duration: | 14.5 hrs / 159 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |