hi, i have the following code for open my custom appointmentdialog
function ActivityDialogOpening(oScheduleInfo, oEvent, oDialog, oActivity) { oEvent.cancel = true; //Cancel default form
var StartTime = oActivity.getStartDateTime(); //Get Activity start time to pass to custom form
var key = oActivity.getDataKey();
But the key is always NULL. What is wrong? in starttime i have a value in.
Hello Martin,
Thank you for posting in our forums.
When the dialog is in Create mode , and you check the DataKey on the client, it is null.
When you open the dialog in Edit mode, you will have access to the appointment's datakey.
Let me know if you need further assistance.