Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Relation Graph Cardinality Question

Featured Replies

FMP tries to indicate the cardinality of a relationship using a straight line or "crows foot" up to the TO. But there is another that shows up occasionally that I cannot find any references to! I wondered if there was anyone out there that could point me to one or more places to find out what it is meant to represent.

I'll attach a jpeg to illustrate.

ForumExample.gif

Storage.

Specifically, global fields and unstored calcs show with the pipe.

IMHO, it means that the relationship only works in one direction.

Maybe a better way to put it: there are no "related records" at the end marked with the "T".

Edited by Guest

Not sure about this since I didn't test all possibilities, but...

Straight line: When the field is defined as Auto-Enter or Validate Unique.

T or Pipe: When field is defined as global or unstored.

Crow's feet: Everything else

No connection between the lines and how many related records there actually are.

No, I meant the graph says "there will be no 'related records' on this side, no matter what you do". In graphical terms: if you follow this line, you will get to a roadblock.

I agree with Comment. Another way to look at it is, on that side, the record is a UNIQUE key hence "no other record in that side of the table will have a duplicate of the key field." for instance, if you looked at that column, there will be one and only one occurence of each value. this can either be the primary key field or another field that can be used as a primary key field. A primary key field is a field that can be used to uniquely identify a row and in filemaker terms, a record.

http://en.wikipedia.org/wiki/Candidate_key

http://en.wikipedia.org/wiki/Primary_key

ROW = RECORD

COLUMN = FIELD

Edited by Guest

I agree with comment too. And with Leland when he says Filemaker "tries to indicate" the cardinality. In the case of the T, it's likely 100% accurate. In the cases of the crow's feet and the direct line, it's more a strong suggestion of what should be happening.

Frex, a person unwise in the way of keys can force a field FM thinks is a primary key to have duplicates.

I believe it indicates how it's going to index the related records (or, in case of "T" - how it's NOT going to index them).

Nope, the Crow's feet/ straight line is directly related to Unique validation and Auto Enter serial.

I believe indexing is also related to those. I remember -Queue- once demonstrated how relationships with a straight line were faster than crow's feet - unfortunately, that thread was on a forum that doesn't exist any more.

It appears to mean that the field at that end of the line cannot be indexed.

Really? :jaw:

the record is a UNIQUE key hence "no other record in that side of the table will have a duplicate of the key field

This doesn't actually appear to be correct. If you make a relationship with a calculation field (I call it 'Match All') on each side and set these fields to both contain 1 then the relationship will show with the straight line.

Changing that calculation to 'Unstored' on one of the fields changes the relationship graph symbol to -|. So this does not accord with your statement.

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.