rwilson504 / PCFControls

Reusable PowerApps Control Framework (PCF) controls.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using the Event Color Field with Calendar Control

JSIT-20 opened this issue · comments

Hi Richard,

I'm trying to use the calendar control in a model driven application. Everything works great but I'm not able to use the Event Color field functionality. The field I'm using is an option set containing hex values and referring to it using its logical name. When I leave the Event Color field property empty the calendar works but when I add the option set the calendar is blank.

Could you help me figure out how to make the functionality work?

Thank you,

JS

commented

Hi JS,

The color field, I believe, needs to be a text field with a HEX code in it. You can test this by using any text field and adding it to the calendar control. Then, add a HEX code to a few records. Also, make sure that the color field column is included in the view.
If I am wrong about this, Richard will let us know. 😁

You are correct Art that would probably be the fastest way to do it. That being said I could make sure in the code that if it's an optionset field that i grab the display name of the optionset. JS can you confirm that the field i added below in my system is similar to what you are trying to do.

Thanks,

Rick

image

commented
commented

Here is a pic of the option set color value...

image

Thanks a lot for your help, I was able to get the Event Colors set up.

Unrelated question: Is there a way to disable/remove specific days, like how the work week calendar removes Saturdays and Sundays?

Thanks again,

JS

There is no way out of the box, but I know this is something @ArtKarp Art has wanted too :) It could be done but would require some additional code. I can take a look at how much work it would be.

commented