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.
Juggernaut

Basic question for my study notes database

Featured Replies

I have a database to manage my study notes/Questions.

I wanted to modify it to make it store multiple images per record in a table. One record in a table should be able to show multiple media files and the same media file may appear in multiple questions. I made a join table to represent this Many2Many relationship.

What kind of field should I make in the layout to add multiple images to a record in the table?

Is this the situation where I use a portal?

Hi jd9027:

Yes, this is a perfect candidate for a portal. The beauty of portals (or more correctly, relationships) in FM7 is that we can display a field from table occurrences "anywhere along the relationship path." We couldn't do that in earlier versions.

On your Notes layout, create a portal to show the relationship to your join table. You'll probably want to set the portal options to show a "few" rows and activate the "scroll bar" option. Within the boundaries of the first portal row, add any fields from the join table that you want/need to display.

Here's the twist ... add a Container field for the related Media records based on the table occurrence from the other side of your join table. Not knowing how you've named these TOs, I can't be specific, but look at the "flow" on your Table Occurrence Graph ... in essence, you want to "pull" the Media field from the table occurrence you linked to your join table.

Let us know if this gets you headed in the direction you hoped. If you need more assistance, it might be helpful if you could attach a zipped copy of your file. :goodluck:

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.