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
Custom appointmentdialog after save
posted

hi, with the following code i load my custom addappointment dialog. in the dialog i save my appointment in a sql datenbase. but how is the correct way to handle my custom add appointment dialog. and after close the screen, must i reload the whole calling page and rebuild the complete calendar with the new values from the database?

 

 

 

 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();
   // alert("Reservierung_add.aspx?StartTime=" + StartTime + "&EventID=" + key + ",'dialogWidth:550px;', 'dialogHeight:550px;'");

    var sUrl="Reservierung_add.aspx?StartTime=" + StartTime;
    sUrl = sUrl + "&EventID=" + key;

    var sFeatures="dialogHeight:550px;dialogHeight:550px;";
   
    window.showModalDialog(sUrl, "", sFeatures);

    window.location.reload();