Nope, that’s the way you have to do it. However, it bears mentioning that global fields are by definition unstored and user-specific, so this method will fail if either
a) …you’re in a multi-user environment, or
b) …you need a bi-directional relationship.
What I generally do, in these situations, is create a calculation field—sometimes global, sometimes not, depending on my needs—that is set to return the constant value. (As an aside, there’s a great FileMaker Naming Conventions white paper on FileMaker.com ((
1.9MB PDF)), which includes some really good suggestions as to how to denote your key fields—including constants.)
HTH.