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.

Finding data from a summary field .

Featured Replies

  • Newbies

I have an enrollment database for classes and I need to inform people if they are in the class or on the waiting list for the class.

As classes vary in size each class has a maximum number field and I have set up a summary field in the student/class join table to count the number of enrollments when sorted by class name. A third field then calculates if the summary is greater than the maximum number field. If not it gives "Enrolled" and if so it gives "Wait List".

The problem arises when I want to find the records of students who are on the "Wait List". As summary fields are unstored I cannot find them.

Is there a work around to make the data stored.

You could define a self-join relationship of the Enrollments table as:

Enrollments::ClassID = Enrollments 2::ClassID

AND

Enrollments::Date ≥ Enrollments 2::Date

(assuming the priority is date-based).

Then a calculation field in Enrollments =

Count ( Enrollments 2::ClassID ) > Classes::Size

can return true/false waiting status.

This is still unstored, but unlike a summary field it doesn't depend on a found set, therefore it's searchable.

  • Author
  • Newbies

Thanks a million it works.

Could I possibly pick your brains with a further question.

There is also the possibility of insufficient enrollment in a class, in which case it will not run. If the minimum number is 6, I have used the count summary field for a calculation that returns "Insufficient Enrollment" if there are 5 or less students enrolled.

This works up to a point, but the problem is that it does not change after the minimum number is exceeded.

If you are busy I post this to the forum, and I promise I won't ask any more questions.

You don't want to use summary fields for any of this, since they summarize the found set. To get a "Insufficient Enrollment" flag, you should be using a calculation field in the Classes table =

Count ( Enrollments::ClassID ) < Size

  • Author
  • Newbies

Thanks again.

This is a much more sensible approach. I got the idea of using summary fields from a book, but I might have misunderstood what they were getting at.

Well, it IS possible to use a summary field to summarize the related set, too (see the attached). This option has been continually improved since version 7 and is now quite usable. But since you need this in a calculation anyway, there's little advantage to it.

RelatedSummary.fp7.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.