TAM Modification: Different Grading and Attendance Rosters

Solution Provided by Matt Zacks | Email: matt@inresonance.com | Reviewed with Chris Page and Paul Borneo

This modification to Teacher Access Module allows you to specify a different term for both entering grades and taking attendance. This is useful at the beginning of a new term when your teachers need to both enter attendance for the current term while they finish up entering grades for the last term.

The Key to these changes is to instantiate the $$mode global variable when going the to attendance layout so that the CurrentTerm.Attendance field can be used instead of CurrentTerm.Grading and then killing that global variable when going to the other layouts.

Modifications to Divisions Table in TeacherAccess.fp7


1) Rename CurrentTerm field to CurrentTerm.Grading


2) Add Text Field called CurrentTerm.Attendance and place in portal of the Divisions tab in TAM preferences with same value list as the CurrentTerm.Grading field.


3) Modify calc field called DivisionCurrentTerm to be unstored and change the calculation to the following: Division & " " & Case($$mode="Attend";CurrentTerm.Attendance;CurrentTerm.Grading)

Modifications to pvt – teacher.load my sections
 Script

1) Add the following Case Statement (6 script steps) to the beginning of the script:
If [isEmpty($$mode)]
set field [sessions::term;session.divisions by teacher division::currentterm.grading]
Else
set field [sessions::term;session.divisions by teacher division::currentterm.attendance]
end if
commit records

Modifications to pvt – teacher.load keys and sections
 Script

1) Replace the following script step with the 6-step case statement above: set field [sessions::term;session.divisions by teacher division::currentterm.grading]

Then set the $$mode global variable in the beginning of the following header navigation scripts as follows:
 btn – header.dashboard set $$mode to 0
btn – header.students set $$mode to 0
btn – header.grade entry set $$mode to 0
btn – header.attendance set $$mode to “attend”

In the ATTENDANCE.Class Entry Layout: Button Setup for "A" button and the "L" button: Script Parameter references to the field sessions.studentreg roster.DIVISIONS::CurrentTerm.Grading should be changed to refer to the field sessions.studentreg roster.DIVISIONS::CurrentTerm.Attendance