Posted under FileMaker Pro
List is an underused function in FileMaker Pro. I say it’s underused only because I never used it before
Recently I was working on an email engine that would notify the teachers at Fenixworks about who was enrolled for a specific class. The students are all in a related table that’s inside of my registration database, but for the life of me I couldn’t find a way to build a calculation that would include just the students from a specific workshop for the instructor email.
I tried about ten different approaches, it seems like there’s always at least that many ways to try something in FileMaker. I had already searched FileMaker’s help and had come up empty handed, so I turned to the internets, a la Google.
I find often I can type a plain english question into Google and find a worthy response. In this case, that’s exactly what I did.
I asked Google “How do I list related records in an email calculation for filemaker pro?” I turned up a few pages that didn’t help, but then I ran across one that listed exactly what I needed.
There’s actually a “List” function. You can use it to return a list of related records, all in one field. Then you can use that field just like any other field. It has the added benefits that it works to show all the contents of a repeating field in one place, or you can even use it to show a bunch of fields as if they were all concatenated into a list.
Sweet.
So for my needs, I was able to just use this one command in my calculation field:
list(regsitrations::student)
and that pulled all of the students related through the registrations table for the current record into one place where I could then work them into my email calculation field.
I immediately turned around and used it in another place to list all of the upcoming classes for my daily Craigslist posting. First, I set up a relationship that relies on both the ID of the class and dates greater than today’s date. Then I was able to use the list function like this:
list(futureSchedule::craigslistBlurb)
Now I’m using the list function so much, I don’t have any idea how I ever got along without it. I think you may find it useful too.





