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

Sort based on related summary field

Featured Replies

  • Newbies

Hello,

I am trying to sort records based on a summary field from a related table, but FM9 won't seem to do it.

I have a table JOBS, a table CONTRACTORS. Each job can have one contractor. In the JOBS table, I also have a summary field TOTAL_JOBS, which is a COUNT OF JOB_ID (unique id field).

I have set up another table occurence of both CONTRACTORS and JOBS, and want to view how many jobs each contractor has done, then sort them by that number. I'm in a list layout, and have all the contractors listed. Next to that, the related summary field JOBS::TOTAL_JOBS, which displays the correct number of total jobs done by each contractor.

However, I can't for the life of me get the list to sort by the summary field. I've tried sorting by contractor name and then "Reorder based on Summary field", but this doesn't seem to do anything. Can anyone show me where I'm going wrong?

Thank you for your help.

Intitial thoughts was this: Is it scaling issues preventing you from putting the Total_Jobs as an aggregate function Count( in the contractor table instead, or...?

Using summary fields over a relation isn't particular documented (yet).

But then I tried to investigate the reasoning behind the Reorder by summary, and it works ... you need to sort the Contractor ID on the related summary field. I think this is where you turned wrong ....sorting directly on a summary field is not possible, it's grayed out if attempting.

--sd

Edited by Guest

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

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.