gwcoffey.com

Archived Post

This post is archived from Six Fried Rice, a company and blog I used to run. Some posts have been edited slightly to fix typographical errors, and remove unnecessarily-gendered language. You can view the full archive here.

FileMaker’s find mode is a great feature. You can tell because, like all great technologies, it is easy to understand the first time you try it, and yet has a depth of capability that can be unlocked if you know a little more. Unfortunately, many FileMaker developers (and users) never venture beyond the simplest of finds. This series of articles aims to change that.

The Basics

Everybody knows that to do a find, you first switch to find mode (View → Find Mode). Then you type in some stuff and click Find. When you’re in find mode, all your records (along with the field data in them) disappear, but the layout otherwise stays the same. It acts a lot like browse mode: you can type in edit fields, choose from pop-up menus, and click off checkboxes and radio buttons. You can copy and paste. You can even use the Edit → Find/Replace command, on the off chance you want to find something in your find criteria.

When you fill out some fields and click Find, FileMaker goes to work, hunting down records that have data similar to the stuff you filled in. If you put “Bill” in the First Name field, FileMaker finds every customer whose name is Bill. If you know this much (and who doesn’t?) you may be able to live a long and happy FileMaker life and never know what you’re missing.

But for some of you, the time will come when you bump in to the limits of this simplistic view. Each of these presents a problem when that’s all you know about find mode:

But each of these is actually easy to get if you learn the secrets of find mode. The first secret we’re going to cover is Find Requests. These are the bread and butter of find mode, but they’re often misunderstood. Over the coming weeks, we’ll add more to this series. In all we’ll cover:

Find Requests

As we mentioned above, find mode acts a lot like browse mode. This affinity goes deeper than most people realize. Did you know you can create new “records” in find mode? Of course they aren’t really records. After all, the very word record implies something is being recorded — put away for future reference. But the things you create in find mode are ephemeral: as soon as you switch back to browse mode, they’re gone.

In the vocabulary of FileMaker, the things you make in find mode are called requests. It makes sense really. You are requesting records. When in find mode, you can make as many requests as you want, and FileMaker will dutifully carry them all out, serving up the results when it is done. You make a new request in much the same way you make a new record:

When FileMaker actually processes your find requests, it finds records that match any one of them. Consider these examples:

In nerdier terms, multiple requests create an or search: Records match either the first request or the second. Multiple criteria in one request makes an and search because records have to match the first field and the second.

This short (and silent) video illustrates how multiple find requests work:

If you put multiple criteria in one request, records must match all of them. If you put them in separate requests, records have to match any of them.

Tune in next time to learn more about the secret life of find mode.