PED_CreatePEDRs_TDTM
PE Discipline trigger handler/TDTM
Custom Permission | REDU - Student, REDU - Admin |
Event | AfterInsert |
Object |
PE Discipline |
Related RIO Education Settings | Course Discipline Requirement RT Id |
Description
Whenever a new PE Discipline record is inserted, this class will create a new PE Discipline Requirement record for each Discipline Requirement that is related to the PE Discipline's related Program Discipline.
The record type and field values of the created PE Discipline Requirement depend on the record type and field values of the Discipline Requirement.
For both record types, the PE Discipline Requirement Name and Requirement fields are set using the values of the Discipline Requirement Name and Requirement fields on the Discipline Requirement record. The new record is also linked to the triggering PE Discipline and the Discipline Requirement.
If the Discipline Requirement is a Course, then, it will use the PE Discipline's Program Enrollment and the Discipline Requirement's related Course to find and set the related Course Connection on the PE Discipline Requirement.
If the Discipline Requirement is a group, then the Credits Required field is set to the value of the Discipline Requirement's Credits field.