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.

how to show 1-M relationships on layouts?

Featured Replies

Hello folks,

I'm developing a simple relational database as a student assistant on my college campus. I have a database set up with 4 tables.

In short, its for a disciplinary action department on the campus. everything stems from the incident tables. One incident can have one or many charges, and one or many sanctions.

From a layout perspective, I can't figure out how to allow input for multiple charges and multiple sanctions. And then search for an incident and have it display those multiple charges and sanctions.

Does anyone have experience with a situation like this, or am i making any sense? ;)

It sounds like you have a good start; 4 tables: Student -> Incident, then 2 children tables of Incident: Charges and Sanctions. On an Incident layout, you can choose the Student. You can also show a portal to Charges, with "Allow creation of related records", and similar to Sanctions.

Back up the relational chain, you can show a portal to Incidents on the Student layout (if you have one), then jump to a particular Incident in the portal, with a button in the row.

What you cannot have is a portal with Incidents on the Student table, including portals to the other 2 tables inside of it; there is no "portal within a portal" capability.

  • 2 weeks later...
  • Author

Update and some questions...

I created one layout linked to the incident table but the bottom half of the layout also allows for entry of the charges at the same time. If i want to add data into the charges table at the same time, do i need a portal for eahc value?

the same goes for a second layout i created for sanctions. There are fields on the sanction layout that also go into the incident table.

Things are structured this way because of how the user receives the information.

Lastly, when creating relationships in FMP...If i have a 1-M relationship from the incident to charge table, do i create the incident table's primary key field in the charge table and then just connect them? In software like rational rose, if you create a relationship between two tables the foreign key is automatically moved into the many side table

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

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.