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.

Featured Replies

While creating a database that has Products, Suppliers and Lines I have come across the need to calculate a count of the suppliers from the context of a Products record. My relationship is like so:

quickRel01.png.ac5c76936fb3a15dcb4f79879

My question if I want to pull a lot of information about Supplier is should my portal in the Products record be from Suppliers or from Lines? If the best answer is Lines, could I still have a count of related Suppliers by using the primary key from that table in the portal? Is it a bad idea to use fields from a related tables portal other than its own? Thanks

  • 4 weeks later...

If you have a field in Products which is a count of suppliers, this will use your relationship and is completely unrelated to the decision on how to setup your portal.

If you want to know how many unique suppliers a product has, then I would use a calculation in Products that is a count on PK_Suppliers using your relationship. Depending on your setup, it may be sufficient to count FK_Suppliers from the Lines, but this would double-count suppliers that appear on more than one line (if this is possible in your system). It would also count Lines that have an invalid value in FK_Suppliers (a value that does not correspond to a Supplier).

As for the portal, if you only want to display information from Suppliers, then the portal should be to Suppliers (although it doesn't really matter in most cases), but if there is ANY information that you want to display from Lines, then the portal should be from lines. It is no problem to "extend" the relationship with a field from Suppliers in the portal to Lines, but you will have problems if you set up the portal to suppliers and then decide you want to stop half way to get some fields from lines - you'll end up with a line for each supplier but the additional data pulled from Lines will just be a repeat of the first matching Line record on every line of the portal.

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.