SECN_DateValidation_TDTM
Session Connection validate date trigger handler/TDTM
Custom Permission | None |
Event | BeforeInsert, BeforeUpdate |
Object |
Session Connection |
Related RIO Education Settings | None |
Description
Whenever a Faculty Session Connection is inserted or updated, this class checks if either or both of the Start Date and End Date fields are blank. If so, it populates them using the Session Start Date and Session End Date fields on the related Session. If the Session Start Date is not set or if it is before the current date, the Start Date is set to the current date.
This class also validates the set dates, raising an error if any of the following conditions are met.
- The Start Date is before the Session Start Date.
- The Start Date is after the Session End Date.
- The End Date is after the Session End Date.