I am trying to create a context menu on a single click. I have the code ready to implement this. However I am trying to find out the right object/events to use.
Lets say one day has an appointment set, and one day does not. What event can I use or what objects can I use through Javascript to see if the day that was just clicked on has an appointment set?
Here is the current event I am using, which works, but when I click on an appointment nothing fires.
function WebScheduleInfo1_ActiveDayChanging(oScheduleInfo, oEvent, oOldDate, oNewDate) { console.log(oScheduleInfo); console.log(oEvent); console.log(oOldDate); console.log(oNewDate);
}
Which object will hold the value of weather an appointment is set that day or not?
Anyone have any ideas?
Hi OmegaPrime,
If you are using WebMonthView, I would suggest you to handle its MouseDown event and see if the clicked element is empty, If it is, then there is no appointments on this date. For example:
function onMouseDown(oWebMonthView, oEvent, element) { if (element.children.length == 0) { console.log("No appointment"); }}
Let me know if this helps.