Plausibility Check
When a new activity is created or an existing one is updated, the system should check whether the status ("Scheduled", "Completed" or "Missed") is consistent with the date.
Activities in the future are set to "Scheduled", activities in the past are changed from "Scheduled" to "Missed" and corresponding messages are displayed.
- Define the following trigger:
- Enable the Plausibility Check option.
- Define the following condition for the first line: Date = Today's Date
- Define the following condition for the second line: Status = Scheduled AND Date <= Today's Date.
- Save the trigger.
- Switch to the Rights info area.
- Click in the Triggers cell for the Activities info area.
- Define the following database event:
- Save the access rights and assign them (to a station).
Each time an activity is added or edited, the Status is checked against the current date. Activities in the future have their status set to "Scheduled". Activities in the past not set to "Completed" have their status set to "Missed".