Hi,
I have been trying to call a webservice validation to the events before the editor allows someone to edit an appointment.
But i can't find a way to actually stop the scheduler from opening the form.
I call the validation OnClientAppointmentDoubleClick
then i set the hasReservations = true/false depending if there are any reservations to that appointment.
I try using the following code to stop the schduler, but it wont work due to the async. delay.
How am i able to implement such thing?
This doesn't have to happen on the client side, but i cant't find a way to validate it before the client recurrence popup is displayed.
The client documentation for the scheduler is horrible, and i cant find anything i need.
Someone please help me!
Thanks
Fabio
I have been trying to call a webservice validation to the events before the editor allows someone to edit an appointment.
But i can't find a way to actually stop the scheduler from opening the form.
I call the validation OnClientAppointmentDoubleClick
var hasReservations = null; |
function OnClientAppointmentDoubleClick(sender, eventArgs) |
{ |
var strId = eventArgs.get_appointment().get_id().substring(0, 36); |
WebServices.SiteService.EventHasRegistration(strId, OnLookupComplete, OnError); |
then i set the hasReservations = true/false depending if there are any reservations to that appointment.
I try using the following code to stop the schduler, but it wont work due to the async. delay.
if(hasReservations == null || hasReservations== 'undefined') |
{ |
eventArgs.set_cancel(true); |
radalert("Validation service currently unavailable. Editing events are not available at this time."); |
return; |
} |
if(hasReservations) |
{ |
radalert("Some occurrences of this series have reservations assigned to them, they will not be modified."); |
eventArgs.set_cancel(true); |
} |
How am i able to implement such thing?
This doesn't have to happen on the client side, but i cant't find a way to validate it before the client recurrence popup is displayed.
The client documentation for the scheduler is horrible, and i cant find anything i need.
Someone please help me!
Thanks
Fabio