Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

Table/Relationship Naming Conventions?


This topic is 7258 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Given the existence of table aliases (Table Occurrances) in FM7 and bidirectional realationships, it seems that naming your TOs clearly is of increased importance. Has anyone come up with a clear way to do this?

So far, the best thing I've come up with is this method:

"[TableX] to [TableY] by [MatchField(s)]"

e.g.

"Worker to Salary by WorkerID Date"

However, I'm not totally satisfied with this for several reasons. First, since one table is listed before the other, it tends to imply a one-directional relationship. I suppose since the TO is linked to a specific table, this TO should be listed first. Also, if you use long table names, the match fields are often not visible (cut off) in popups, which makes seeing which relationship you are using a bit hard.

Any suggestions?

Posted

Given the existence of table aliases (Table Occurrances) in FM7 and bidirectional realationships, it seems that naming your TOs clearly is of increased importance. Has anyone come up with a clear way to do this?

So far, the best thing I've come up with is this method:

"[TableX] to [TableY] by [MatchField(s)]"

e.g.

"Worker to Salary by WorkerID Date"

However, I'm not totally satisfied with this for several reasons. First, since one table is listed before the other, it tends to imply a one-directional relationship. I suppose since the TO is linked to a specific table, this TO should be listed first. Also, if you use long table names, the match fields are often not visible (cut off) in popups, which makes seeing which relationship you are using a bit hard.

Any suggestions?

Posted

Given the existence of table aliases (Table Occurrances) in FM7 and bidirectional realationships, it seems that naming your TOs clearly is of increased importance. Has anyone come up with a clear way to do this?

So far, the best thing I've come up with is this method:

"[TableX] to [TableY] by [MatchField(s)]"

e.g.

"Worker to Salary by WorkerID Date"

However, I'm not totally satisfied with this for several reasons. First, since one table is listed before the other, it tends to imply a one-directional relationship. I suppose since the TO is linked to a specific table, this TO should be listed first. Also, if you use long table names, the match fields are often not visible (cut off) in popups, which makes seeing which relationship you are using a bit hard.

Any suggestions?

Posted

I like to keep my TO names simple, specifying the path only on duplicate TOs.

If table X is the base table for the table occurance, then I'd name the TO "Table X by [Filter/Primary Path TO]", leaving out the keys from the name unless it's necessary to distinguish it.

So from your example, I might have a Salary TO related to a Worker TO by Worker ID, but since this is the primary relationship between these two tables, I'd simply name them "Salary" and "Worker." Then for the Salary TO that uses a filter by Date, I'd name it "Salary by Date."

I suppose the important thing is to try to use the same naming convertion throughout your solution so that you, and developers that follow, will be able to figure out what's going on.

Posted

I like to keep my TO names simple, specifying the path only on duplicate TOs.

If table X is the base table for the table occurance, then I'd name the TO "Table X by [Filter/Primary Path TO]", leaving out the keys from the name unless it's necessary to distinguish it.

So from your example, I might have a Salary TO related to a Worker TO by Worker ID, but since this is the primary relationship between these two tables, I'd simply name them "Salary" and "Worker." Then for the Salary TO that uses a filter by Date, I'd name it "Salary by Date."

I suppose the important thing is to try to use the same naming convertion throughout your solution so that you, and developers that follow, will be able to figure out what's going on.

Posted

I like to keep my TO names simple, specifying the path only on duplicate TOs.

If table X is the base table for the table occurance, then I'd name the TO "Table X by [Filter/Primary Path TO]", leaving out the keys from the name unless it's necessary to distinguish it.

So from your example, I might have a Salary TO related to a Worker TO by Worker ID, but since this is the primary relationship between these two tables, I'd simply name them "Salary" and "Worker." Then for the Salary TO that uses a filter by Date, I'd name it "Salary by Date."

I suppose the important thing is to try to use the same naming convertion throughout your solution so that you, and developers that follow, will be able to figure out what's going on.

Posted

I like the ideas on that web page. However, I find that in the solution I'm writing, I have a bunch of similar-but-different relationships, where I need to have the key fields showing. This may be a weird situation, as I'm dealing with dirty / non-normalized data so I have to use a bunch of partial matches (i.e. Last name, LastName+FirstName, LastName+FirstInitial, Last+First+AgencyCode, etc.). I find that if I don't have the key fields in the relationship name, I go crazy smile.gif

Posted

I like the ideas on that web page. However, I find that in the solution I'm writing, I have a bunch of similar-but-different relationships, where I need to have the key fields showing. This may be a weird situation, as I'm dealing with dirty / non-normalized data so I have to use a bunch of partial matches (i.e. Last name, LastName+FirstName, LastName+FirstInitial, Last+First+AgencyCode, etc.). I find that if I don't have the key fields in the relationship name, I go crazy smile.gif

Posted

I like the ideas on that web page. However, I find that in the solution I'm writing, I have a bunch of similar-but-different relationships, where I need to have the key fields showing. This may be a weird situation, as I'm dealing with dirty / non-normalized data so I have to use a bunch of partial matches (i.e. Last name, LastName+FirstName, LastName+FirstInitial, Last+First+AgencyCode, etc.). I find that if I don't have the key fields in the relationship name, I go crazy smile.gif

This topic is 7258 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.