in

C1 Community

ComponentOne Community is a free source for developers and help authors to collaborate and communicate.

labels don't save color for my appointments

Last post 05-02-2008 3:01 PM by C1_IrinaP. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-01-2008 5:55 PM

    • yagwat
    • Not Ranked
    • Joined on 11-07-2007
    • Posts 4

    labels don't save color for my appointments

    I have appointments and labels bound to my Schedule.  I can create an appointment and change the label and the custom labels show up and it shows on the calendar with the right color.  I close the program and restart, and now my appointments all look clear. 

    I've read that the datastorage handles all the linking, but it's like it's not saving the label with the appointment.  I can't find any example that's different from what I'm doing.  The samples all save their colors.  Help

     update:  I've found the properties column in the appointments table that has all the linking information.  It's magic, so use it when you want to link your storages to your apppointment

    Also, I was adding the appointment to the datastorage and then setting the label property instead of the other way around.
     

    Filed under:
  • 05-02-2008 3:01 PM In reply to

    Re: labels don't save color for my appointments

    AppointmentProperties keep only Id or Index of the label, all other information should be stored in other place. You can bind LabelStorage to your data in the same way as you do with appointments. Look at FullBound sample here (it contains a separate table for saving labels along with their colors): http://helpcentral.componentone.com/Sample.aspx?ID=VUOTZW

Page 1 of 1 (2 items)
Contact ComponentOne: 1.800.858.2739 ©1987-2008 ComponentOne LLC All Rights Reserved.