Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

This topic is 4143 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a relation that doesnt seem to work right. I can't see to get my head around what is wrong.

 

 

It for a school - tracking absences. Each class is once a week and has a weekday (courseDay).  Each class has the tipical many-to-many of courses and student enrolled in it (Course_Students).

 

I have made a dashboard that takes the a day of the week to show the students that should be in the school for all classes on that date.

 

The relation is:

Dashboard::date_of_week -> Courses::courseDay -> Course_Students::courseID -> Students::studentID

 

 

When listed in a portal, all the course names are the same and there isnt the correct students. I have tried re-arranging the relations but still the same.

 

Feels like it something really simple but am I doing something like this correctly?

 

Thanks for any pointers.

Posted

-dashboard

day of week selector

 

-courses table

pk course id

course day

 

-course_student table

pk course student id

fk course id

fk student id

 

-students table

pk student id

 

can you have more that one course per day of the week? If yes then another join table is probably needed because course and day are many to many.

If i failed to understand then please post the file

Posted

You're correct with you're takes. Here's a shot of the relation (have tried other ways).

 

There can be more than one course per day but I dont see how another join table could fit in isn't relating to a day of the week to courses::day act as one ?

 

Thanks. ,

post-57819-0-32067000-1379480993_thumb.p

Posted

When listed in a portal, all the course names are the same...

Assuming your portal shows records from the CourseStudents join table, you will need another TO of Courses that sits behind the join table (from the point-of-view of Dashboard) to show the relevant course name in each portal row. Either that or have an unstored calculation field in CourseStudents to pull the course name and place that field in the portal. Otherwise all rows of the portal will show the first related course (again, from the point-of-view of Dashboard).

 

...and there isnt the correct students.

I don't think we have enough information to help you with that. Note, however, that if the portal indeed shows records from the join table and a student takes two courses on the same day of week, that student will be listed twice. If, OTOH, the portal points to the Students table, it makes no sense to have it show a course name field.

This topic is 4143 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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