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.

Difficulties with Include only related values

Featured Replies

I have a database that has tables named Company for Location, Contact, and Location. Each table has its own serial ID field (CompID, ContactID, and LocID respectively). The company table contains the company name. That gets related to the location table to match an address with a company (via CompID). The Location table is related to the Contact table via LocID.

I have a contact table with names that I wish to associate with a company. Since a company may have more than one physical address, I want to be able to choose from the multiple addresses associated with a company. This is where I am having a problem.

I thought I could use a value list for the LocID field in my Contact table configured as follows:

Use values from first field - CompID (from Company for Location table), Include only related values starting from - Location (table).

Conceptually, I think this makes sense. I want to see the LocID values that go with a particular CompID in my current view, and choose the one that contains the address data I want. Yet when I click in the LocID field and expect a list of values associated with a particular CompID, I get nothing.

If I remove the Include only related values starting from option, then I see the LocIDs of contacts that are already associated with multiple CompIDs...not what I want.

If someone could tell me what I am doing wrong, or perhaps a better way to do this, I would appreciate it.

Thanks for reading!

Edited by Guest

  • Author

when I click in the LocID field and expect a list of values associated with a particular CompID, I get nothing.

To the 20+ people who read my post, thanks for reading. I managed to solve the problem quoted above by changing how my tables were related to one another. However, I still have a problem with value lists. Perhaps this other problem is easier to solve.

When I click in the LocID field, I now see a value list of all of the LocIDs affiliated with a CompID. However, when I choose a LocID other than the first one displayed, the LocID field seems to ignore my input and it continues to display the first LocID in the list.

Now, here's where the problem gets interesting. If I type the second LocID value displayed in the LocID field's value list into the LocID field with the keyboard, then the related fields show the data with the LocID that I typed in (which happens to be the LocID that FMP is refusing to let me choose from the value list).

I suppose the question now is why would FMP refuse to acknowledge my choice in the value list, and what can be done to make it accept my choice and display the related data in the fields?

Thanks for reading (again, if you are revisiting).

  • Author

Comment,

Thanks! It works your way, but can you explain why it did not work my way? I would like to understand why it did not work, as a means of building up my FMP knowledge.

I don't know - I did not see your file, and I didn't quite understand your explanation of it.

  • Author

I didn't quite understand your explanation of it.

You are an excellent mind reader then! : Would a PDF of the relationships graph help?

Why not an actual file? You can duplicate mine, and change it to what you think should work.

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.