onEventChange
You can get mor information about the effects:
- the event before the change: getFieldValue('myCalendarControl.oldEvent')
- other events that got affected: getFieldValue('myCalendarControl.relatedEvents')
You can call cancelCalendarChanges to cancel all the changes
let eventObj = app.getFieldValue("myCal.changedEvent");
let record = app.loadConfigRecordById("appointment", eventObj.id);
record.data.aStart = eventObj.start;
record.data.aEnd = eventObj.end;
app.saveConfigRecord("appointment", record);