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
155
getselectted time
posted

hi,

how to get the selected timeslot of a web day view for a new appointment in javscript ie how to get the selected rows time slot on double click

and on ehich client event

 

thanks in advance

  • 265
    posted

    Hi

    In order to get selected time slot you need to call "WebScheduleInfo1_ActivityDialogOpening" Function in javascript and then you can get selected Time and Date in UTC format.Later you can convert utc date and time to your Required format.

    See following function for implementation

    function

    WebScheduleInfo1_ActivityDialogOpening(oScheduleInfo, oEvent, oDialog, oActivity)

    {

    oEvent.cancel =

    true;

     

    var EventID = oActivity.getDataKey();

     

    var DayviewID = oScheduleInfo.getID();

     

    var StartTime = oActivity.getStartDateTime();

    oActivity.setStartDateTime(StartTime);

    }

    Thanks

    Yashkant