Page 1 of 1

Color Events from different event field

PostPosted: Wed Jun 24, 2020 6:26 am
by Jim2001
I want to change the background color of events based on a new field called "Type". Type is related to a table I made of various type names and RGBa values. Currently it seems to still be pointing to "Status" and I've tried to change a few things but so far nothing has succeeded so I thought I'd ask for a little guidance. :D

Re: Color Events from different event field

PostPosted: Wed Jun 24, 2020 7:11 am
by kcembrey
Hi Jim,

By default, the background color of an event will be based on the status value unless you override that using event styles. We have an example of how to do that in our documentation here: https://www.seedcode.com/pmwiki/index.p ... tyles#fill

These special background colors will need to be defined in your CSS file as classes, so they're fairly static. But, if you wanted to dynamically add or remove colors from a table or value list, you could script updating the CSS content when the file starts up or values are changed.

We'd be happy to help out with both of these solutions as part of an implementation package. Packages can be used for consulting, coaching, or modifications like these and start at blocks of 5 hrs for $190/hr. When the time comes, you can use this link and with a day or two notice we can schedule our first screen-sharing session:

http://sites.fastspring.com/seedcode/pr ... onpackages

Regards,

KC

Re: Color Events from different event field

PostPosted: Thu Jun 25, 2020 4:17 am
by Jim2001
Thanks. For anyone else needing a solution, I used inline styles to insert the correct RGBa into the Dbk_eventSummaryCalc and it worked a treat! :D