C
|
Chris Whitehead 3/1/2025 |
Create a new page for the admin only to add students and make the instructor_id a lookup in designer, that way the admin can select the instructor when adding that leaves the standard instructor page staying the same. |
W
|
wfcentral author 3/1/2025 |
thanks - I may have to do that... it was something I thought of. They have about 1,000 instructors. So, the only way to pull that off would be to use an ajax dropdown where they just start typing in the instructors name. This all seems a bit like the wrong way of going about it though. I was hoping to find some way of doing it using events. Since you are adding a student to a roster and the roster know what the instructors ID is, it would seem you could write an event to get the parent field data and use it to update the student record. |
W
|
wfcentral author 3/2/2025 |
In case someone else is looking for an answer - I found it. I did a combination of what Chris mentioned AND what I already had setup. With the tables linked together on two fields I created a new page for admin only. I set the permissions for that page to "can see and edit all records" and then I made this page only visible to admin users. The result is that when they add a student record from the roster screen it correctly assigns the parent instructor ID to the student record. So, I did not need to have a lookup and make them pick the instructor each time. |