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

I am currently working on a database that will score our company's suppliers.


I have one table that contains all contact information for the suppliers (Suppliers), and another related table that contains the actual score entries (Scorecards). Suppliers are scored on pieces shipped on time and quality reports. We only ever send a scorecard to suppliers based on information from the current year, so I have a field in the Scorecards table for year. The layout I am working with is based on the Suppliers table, with a portal displaying the related entries from Scorecards in the specified year.

Now, where I'm running into trouble is my attempt to retrieve a total for Shipped pieces for a specific Supplier in a Specific year. In other words, how do I get FMP to take many related records, and sum only related records based on data in a third field?

Based your description, I would assume that you have SupplierID field and a global field for year in Supplier table, also a SupplierIDfk and a Year field in Scorecards table.

Make a relationship between table of current layout (in this case Suppliers) and the Scorecards table using 2 fields as below:

 

Suppliers::SupplierID = Scorecards::SupplierIDfk

AND 

Suppliers::Year = Scorecards::Year

You may call the TO of the Scorecards anything like "Scorecard Filter".

Now, to calculate the total for Shipped pieces, simply make a calculation field with below calculation:

Sum(Scorecard Filter:Shipped pieces)

Edited by siroos12

IMHO, the simple solution is to go to a layout of Scorecards, find the records in the year of interest and group them by SupplierID. Or, if you only need one supplier's scores, do a find for their ID first (or perform GTRR from their record in the Suppliers table), then constrain by year. 

Portals do not play well with reports.

Edited by comment

  • Author
23 hours ago, siroos12 said:

You may call the TO of the Scorecards anything like "Scorecard Filter".

I'm sorry, what does "TO" mean?

Table Occurence.

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.