SR_PopulateDate_TDTM
Study Registration trigger handler/TDTM to populate dates
Table of Contents
Custom Permission | None |
Event | BeforeInsert, BeforeUpdate |
Object | Study Registration |
Related RIO Education Settings | None |
Description
Introduced in v3.14, this class will set the date fields of the Study Registration record, based on the status type.
When a new Study Registration is inserted or updated, its date fields will be updated, based on the status type. **
In other words, if the Study Registration is created with (or updated to have) a status that is:
-
Confirmed, then, the Enrollment Date field will be set to the current date.
-
Waitlisted, then, the Waitlist Date field will be set to the current date.
-
Withdrawn, then, the Withdrawn Date field will be set to the current date.
In each case, the date field will only be set if it is currently blank.
If there is already an existing value for any of those fields, it would not be overwritten.
** The Study Registration Status metadata is where each status of the Study Registration is assigned with a “behaviour” or type.
For example, by default, the Confirmed status is assigned with the Confirmed “behaviour”, but you can create a new status and assign it with the “Confirmed” behaviour as well.
For an overall view of Continuing Education, see here.