Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
5549
oActivity and GetDatakey
posted

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.

 

Parents
No Data
Reply
  • 19693
    posted

    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.

Children
No Data