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 setup a layout to get data from a related table

Featured Replies

  • Newbies

Hi,

I am pretty new to Filemaker although I am experienced in developing for Access and SQL Server etc. Anyway I'm trying to setup a simple database to track backups using Filemaker Pro 8.

I have two tables - called Media and Tapes with a relationship between the two through the MediaID field which I have setup to allow new Tape records to be created through this relatinship etc.

The Media table also has a field called Media Label. I want to setup a layout for Tapes which allows me to create a new tape record with an associated MediaID but by selecting a Media Label rather than a Media ID in the layout.

I have setup a value list for Media Label using Media ID as the first field and Media Label as the second and I've added this as a popup menu on my Tapes layout.

Here is where I start to get confused. I want the user to be able to select a Media Label from the popup - the resulting Media Label value should then be displayed in the field however the value which should stored in the tapes table should obviously be the corresponding media ID.

I would have thought this should be relatively easy to do but I'm getting confused with the terminology I think.

So firstly I specified the field for the popup menu as the foreign key field in the tapes table for the media ID.

Secondly I specified control style as Popup Menu presumably specifying Display Values From as the Value list I setup earlier - I didn't tick the Other... box as I don't want users to create new values here.

However now is where I have a problem I think as I don't know what to specify in the Display Data From option - what does this actually mean as it seems very ambiguous to me - I thought I already specified to display data from my value list. Anyway whatever I try doesn't seem to work - either the value for Media Label is overwritten in the Media table or the foreign key field contains the text of Media Label and not the ID.

Is there some kind of tutorial on setting this kind of thing up anywhere. I don't want to use a portal to do this btw because strictly this relationship is a one to one - Tape is a "kind of" Media and only one record in Tapes can be associated with a record in Media.

I realise this is a bit long-winded but I'm really struggling here so thanks for any help.

Take a look at this file for an example. Specifically, go to Jobs layout and create a new record.

HTH

Al

Sales_Rep.zip

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.