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
530
Serializing variances from a database
posted

I see you have a similar post, but I have different question.

I am pulling the appointments from a database.  I am not using the serilization methods shown in your samples.  Rather, I have my own database routines, etc...

So, when I load a schedule, I load a bunch of Recurrence records and a more Appointment records.  There are several fields that probably need to be set before adding the appointment to the calendarInfo object.  They are:

  • RecurrenceId
  • Recurrence (do I need to track down the object, or do I will the RecurrenceId be enough for the recurrence object to be found)
  • RootAppointment.  Do I need to find and assign this object?

Which members do I need to define?  Can you direct me to a help file subject on this?

Also, the RecurrenceId values seems to change.  For instance when I set up a recurrence, then go to one of the later recurring values and resize it (in the day view).  When the new variance shows up in UltraCalendarInfo.AfterAppointmentAdded, it seems that the RecurrenceId might be changing.

This RecurrenceId changing could be my bug.  I am asking because I had the other questions listed above. {Edited, This is my bug...}

Thanks for your Help!

Bob

Parents
  • 530
    posted

    No comments on the post yet.  So I thought what I learned so far.  The help file under IsRecurringAppointmentRoot has a pretty good sample that covers a lot of the questions above.

    The Recurrence Object can only be assigned to the root appointment.  So this is not needed when i load variances.

    IsVariance, IsRecurringAppointmentRoot, RecurrenceId and RecurringAppointmentRoot are all read only...  So these are not set during creation.

     Also the Recurrence.Variances collection does not have an add method, so I am beginning to think, that the only way to create a variance, is to:

    1. Create a RecurringAppt
    2. Grab a Variance
    3. Alter that variance

     

     

     

Reply Children