PE Discipline Requirement trigger handler/TDTM
If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.
|Custom Permission||REDU - User
|Event||BeforeInsert, BeforeUpdate, AfterInsert, AfterUpdate, AfterDelete, AfterUndelete
PE Discipline Requirement
|Related RIO Education Settings||Course PE Discipline Requirement RT Id
This class handles behaviour regarding Course PE Discipline Requirements being set as Primary.
When a Course PE Discipline Requirement is inserted with its Primary field checked, or when an existing Course PE Discipline Requirement's Primary field or PE Discipline field is changed, this class will uncheck the Primary field on any sibling Course PE Discipline Requirements (sibling meaning having the same PE Discipline and Target Course).
It will also set their Credits Earned field to 0. It will check the Revalidate Completion field on both the Primary Course PE Discipline Requirement and the siblings.
When a Primary Course PE Discipline Requirement is deleted, this class will check the Revalidate Completion field on any sibling Course PE Discipline Requirements, provided they do not already have Credits Earned.
If a Course is listed in multiple Discipline Requirement groups, it may be difficult to identify which of the groups will that Course's credits contribute to.
The 'Primary' checkbox on the PE Discipline Requirement allows admin or faculty to identify and designate if a Course should be contributed to that particular Discipline Group upon enrollment and completion. For an example, see here.
This trigger will ensure that there is always one primary PE Discipline Requirement per PE Discipline per Course.