Home » Blog » Custom Functions » Keep Your FileMaker Pro Custom Functions Organised

Keep Your FileMaker Pro Custom Functions Organised

by Darren

Working in any kind of development environment is challenging enough, but when you allow yourself to become untidy or disorganised it becomes hell on wheels.

As developers we often fall into the trap of not practising what we preach, we spend 101% of our lives organising other people’s data and often forget to organise our own.

Alex Babkov, one of the FileMaker Developers that I admire, said in an article not so long ago that FileMaker developers rarely make solutions for themselves that come anywhere close to the quality of the solutions we make for clients. I think that’s true, certainly in my own case in the past, and in many instances I have witnessed with other developers I’ve worked with and around.

However, some solutions that we write for ourselves don’t actually need to be prime quality like the solutions that we make for clients. Perhaps that’s because the clients are never going to see them. It’s no different to a lot of web developers that I know that make unbelievably good front end web sites, but, if you saw the backend admin areas you’d think they’d never coded a line in their life.

We are “make-doers” with our own stuff, because we know how to “fiddle” it, bend it, and force it. And, if none of that works – there’s always the Dataviewer :)

So, one particular area we need to keep tabs on is stuff like custom functions amongst other similar things. A few years ago now I spent just a couple of hours building a ridiculously simple solution for housing my custom functions. It was shown briefly in my earlier screencast post an introduction to custom functions.

So I thought I would share that file for the benefit of beginners and starters with FileMaker Pro, just so you don’t fall into that dirty untidy trap called chaos.

You can download the file here: Custom Functions Library

There is a catch though, I’ve taken out the custom functions that I use and just given you a file with a single simple custom function in it just to show you how the file should be built up. Afterall, I wouldn’t want to kill-joy all of those hours you’ll spend downloading or writing custom functions in the future. (you’ll thank me for it ;) )

Just to be clear, you won’t learn an awful lot from the file itself, it is very basic in its construct, but it’s very useful in its function as a custom function store, or it certainly has been for me. I store a copy in my Dropbox so that I can access it wherever I go.

No doubt the FileMaker Pro 11 users amongst you will be aware that you can now import custom functions from one file to another. That’s all well and good, but you should have a central repository for your functions. At some point you’ll have dozens upon dozens of them and you won’t want to be storing/importing all of those across every solution that you make.

And that’s not to mention adjusting and updating your master copy, if all of your functions are in all of your files – then which ones are the masters?

Enjoy, see you soon and leave a comment below.

About the Author: Darren Lunn is on a mission to help new FileMaker Pro developers to become competent FileMaker Pro Developers. You can connect with Darren on Twitter

DiggTwitterTechnoratiFacebookLinkedInEmail

Related posts:

  1. Introduction to FileMaker Pro Custom Functions
  2. How To Download & Install A FileMaker Pro Custom Function

{ 6 comments… read them below or add one }

Paul Spafford July 30, 2010 at 1:39 pm

Hey Darren,

Cool idea. You’re right, my personal database has nowhere near the polish of what I create for all my clients.

Nice looking layouts, by the way.

Reply

Lunny July 30, 2010 at 1:57 pm

Paul, there is no greater compliment than when another developer remarks on your layouts! Thanks^10 for that.

p.s. And you didn’t SCUD my comments, thanks for that :o LOL

Reply

Adam Dempsey July 30, 2010 at 4:32 pm

Very useful Darren thanks!

Will save me having to try and remember which file a custom function is in when I want to reuse it!

Reply

Lunny July 30, 2010 at 4:40 pm

You’re welcome Adam, it’s been very useful to me the last few years. Like you say, finding that pesky custom function you wrote a year ago takes more time than rewriting the damn thing sometimes – then you end up with two versions – nightmare! That’s why I developed this file in the first place.

Now hurry up and get MooPlug updated – LOL ;) such a great plugin of yours.

Reply

Adam Dempsey July 30, 2010 at 4:56 pm

I’d always planned on making something similar but never got around to it!

MooPlug 0.4.9 was released a few days ago :-)

Now hoping to release a Mac version as well for version 5! :-)

Reply

Lunny July 30, 2010 at 5:07 pm

Ha, Shows how much notice I take :) I’ll go and download that right now! For anybody else looking for it, you can find it at http://mooplug.com/

Thanks for that, Adam.

Reply

Leave a Comment

Previous post:

Next post: