Hello there,I am trying to display the currently selected date, from a WebWeeklyView, when I click on a WebToolbar button. I have tried to use the ActiveDayUtc property in thw WebScheduleInfo, but it tells me that it's "undefined" even when I click on an existing appointment. Here's my BLOCKED SCRIPT
function UltraWebToolbar1_Click(oToolbar, oButton, oEvent){var weekView = ig_getWebWeekViewById("WebWeekView1");var activity = weekView.getSelectedActivity();var scheduleInfo = ig_getWebScheduleInfoById("WebScheduleInfo1");
switch (oButton.Key){ case "deleteTool": if(activity != null) alert('Attempting to delete eventID = '+ activity.getDataKey()); if (activity == null) alert('Need to select an appointment to delete'); oEvent.needPostBack = false; break; case "goToDetailTool": if(activity != null) {var eventID = activity.getDataKey(); var startDate = activity.getStartDateTime(); var duration = activity.getDuration(); var selectedDay = scheduleInfo.ActiveDayUtc; /* FETCH ACTIVE DAY */ alert('You are on day: ' + selectedDay); /* HOPEFULLY DISPLAY IT*/ oEvent.cancel = true; /* Call different dialog */ window.open('AppointmentDetail.aspx?eventID=' + eventID + ' &startDateTime=' + startDate + ' &duration=' + duration + ' &selectedDay=' + selectedDay); } if (activity == null) alert('Need to select an appointment to open its details'); oEvent.needPostBack = false; break;}}
------------
Any help would be appreciated.
antonioalm
Never mind. I figured it out.