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.

change schema to make grouped-data report work?

Featured Replies

For a class-enrollment application, I've got a set of classes that sometimes have multiple teachers and always have multiple students, i.e. two many-to-many relationships with join tables. One of the requirements is for a grouped-data report that's supposed to look basically like this:

sub-summary by teacher

sub-summary by class

names of enrolled students & related data

The idea is to get a printout for each teacher showing all their classes and which students are enrolled.

The problem is that if I do the report with "Show records from" set to the teacher-class join table the report shows only one student per class. If I change "Show records from" to the student-class join table, I get only one class per teacher.

I can't use a portal because the number of students varies too much.

I guess I could kludge a denormalized table just for this report, but it seems like there ought to be a more elegant way.

Any other suggestions? Is this maybe a bug in v.7?

Here's the schema:

http://www.lauriston.com/schema_v2.gif

Here's the file itself:

http://www.lauriston.com/Camp2004v2.zip

Welcome Robert!

I think I get what you are trying to do: Given that multiple instructors could be assigned to the same class; for each instructor, show their class lists.

In order to show multiple students, the report should be based in the ClassEnrollment table. But as you pointed out, you can only see one instructor for each class. I don't see a way to do this with one summary report. A couple options though:

On the ClassEnrollment based summary, put a portal showing multiple instructors that are assigned to that class (This would go in the Sub-Summary by InstructorAssignment part. You can turn on sliding to reduce the size of the portal to fit.)

Or, use a script to loop through each instructor, showing that instructor's classes and class lists (From Instructor Go to Related Records [ Show, ClassEnrollment ]) For this option you will have to set some global so the ClassEnrollment report will know which instructor to show.)

Later.

  • Author

Sliding might do the trick, I didn't realize you could do that on a portal. Thanks!

  • Author

No luck, same results with the portal as without.

See attachment.

  • 4 weeks later...
  • Author

Thanks, but that doesn't produce the required results.

Framemaker tech support says there's no way to get what I need without creating a denormalized table, so I'll repost in the reports section.

Seems to me the portal should work fine, see attached.

Camp2004.zip

  • Author

After FileMaker tech support told me it was impossible, I got a simple solution from RalphL in the Layouts section: do the report showing records from InstructorAssignment (instructors-classes join table), and make the body of the report a portal to ClassEnrollment (classes-students join table). That way, all the foreign keys are in the report, and everything works as required. Thanks.

Yes, that's exactly what the attachment to my last post showed.

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.