Roll Your Own Edit Mode
The Problem
As FileMaker developers, we take a lot of things for granted. For example, FileMaker’s Browse Mode/Find Mode feature is actually pretty slick; just place a field on a layout and it becomes both a data-update field as well as a query field without additional coding. However, when a layout is set to “save record changes automatically”, the frequency of people thinking they are in Find mode when they are actually happily clobbering data is enough to drive the most laissez-faire FileMaker developer nuts.
Sometimes, calling such problems “training-issues” just isn’t enough.
One solution is to roll your own Edit Mode feature. This technique uses the power of global variables in FileMaker 8+. In this example, I am going to combine scripts, a global variable and a custom privilege set to regulate users’ record-edit access.
Note: this article in intended to illustrate a general technique, do not rely solely on this example to secure your database.