This discussion is archived
2 Replies Latest reply: Apr 22, 2013 2:36 PM by BKing RSS

Editing calendar colors

BKing Newbie
Currently Being Moderated
I am trying to change the color of the background of data items on my calendar. Right now I have changed it to orange using the 'Data Background Color' in the Calendar Attributes section of my calendar.
This makes all of them orange, but is there a way to make each one have its own color or better yet, have a color associated with a particular value so all entries that show up named 'dahlgren' are blue and all 'dalzell' are red for example.

Also as another question, is it possible to edit the format of the time that shows up? Right now it is like HH.MI.SS.XXXXXX, can I have it just be HH dropping the rest?

Here is a pic of what I have so far:
http://i46.tinypic.com/f3hnvs.jpg


Thanks for the help!
B King
  • 1. Re: Editing calendar colors
    Hari_639 Guru
    Currently Being Moderated
    Hello,

    Enclose your data with some span tag and give it some class based on your data. Then you can apply whatever style you want using CSS.

    For e.g. if calendar query is as
    SELECT '<span class="cls-'||dept||'">'||first_name||' '||last_name||'</span>' Name, doj hiredate from employee
    and if I have two departments A and B, then I will write some CSS for classes cls-A and cls-B to get required back-ground colors. Hope it helps.

    Regards,
    Hari
  • 2. Re: Editing calendar colors
    BKing Newbie
    Currently Being Moderated
    Hari, thanks for your help. At first I went with what you did too but then I found a better way. I ended up using <span> tags in a custom column format to get the same effect.

    Thanks!
    B King

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points