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
283
VarianceAddedEventHandler not firing
posted

I'm rolling my own handlers to a WebScheduleGenericDataProvider, and have been able to create update and delete Appointments, but can't update a recurring event as a Variance. The VarianceAdding event fires and the AppointmentFormPath dialog opens but when the dialog is saved, the VarianceAdded event never fires. Am I missing something?

this.WebScheduleInfo1.VarianceAdding += new VarianceAddingEventHandler(wsInfo_VarianceAdding);

this.WebScheduleInfo1.VarianceAdded += new VarianceAddedEventHandler(wsInfo_VarianceAdded);

protected void wsInfo_VarianceAdding(object sender, CancelableActivityEventArgs e)

{

  Log.Msg("wsInfo_VarianceAdding");

   e.Activity.DataKey = new Random().Next();

 }

 

protected void wsInfo_VarianceAdded(object sender, ActivityEventArgs e)

{

  Log.Msg("wsInfo_VarianceAdded");

}

 

Thanks in advance.

Parents Reply Children