I am using Web Service binding but have not implemented a "provider". Instead, I'm simply trying to code the web service methods directly. I'm not sure if this is causing my problem or not.
Let's take a simple example:
The above code runs without exception and returns appointments which appear on the scheduler. The only problem is that they don't appear in the right time slot on the scheduler. For example, when I inspect "ad.Start" in the debugger it says "{11/8/2010 10:27:58 PM}" but when the appointment appears on the scheduler it is on 11/9/2010 and in the 1am time slot. If I edit the appointment the editor says the start time is 1:27 AM.
Incidentally, I also get a javascript error when trying to edit the appointment:
I'm guessing that I'm missing something rather obvious, but I don't know what it is.
Thanks,
Scott
Let's take a simple example:
[WebMethod(EnableSession=true)] public IEnumerable<AppointmentData> GetAppointments(SchedulerInfo schedulerInfo) { List<AppointmentData> result = new List<AppointmentData>(); var q = from c in WebUtils.User.Merchant.Appointments where c.ServiceDateTime >= schedulerInfo.ViewStart && c.ServiceDateTime <= schedulerInfo.ViewEnd && c.CancelDate == null select c; foreach (WWS.BLL.Appointment a in q.ToList()) { AppointmentData ad = new AppointmentData(); ad.Description = a.Service.Category.Description + " - " + a.Service.Description; ad.ID = a.Id; ad.Start = a.ServiceDateTime.ToUniversalTime(); ad.End = a.ServiceDateTime.AddMinutes(a.Duration).ToUniversalTime(); ad.Subject = a.Service.Description; result.Add(ad); } return result; }The above code runs without exception and returns appointments which appear on the scheduler. The only problem is that they don't appear in the right time slot on the scheduler. For example, when I inspect "ad.Start" in the debugger it says "{11/8/2010 10:27:58 PM}" but when the appointment appears on the scheduler it is on 11/9/2010 and in the 1am time slot. If I edit the appointment the editor says the start time is 1:27 AM.
Incidentally, I also get a javascript error when trying to edit the appointment:
Microsoft JScript runtime error: 'this._appointment.get_recurrenceRule()' is null or not an objectI'm guessing that I'm missing something rather obvious, but I don't know what it is.
Thanks,
Scott