Display calendar events with different colours

0
Using the standard Mendix Calendar widget, How can I display the events on the calendar using different colours to display different types of events that is events that the user has access to full details and Events that user has limited Details. The widget is being used in side a data view and the events retrieved using a microflow with context option. The data view entity has a Parent-Child association with the Events entity. That is, one Data View entity can have many events.
asked
2 answers
1

Calvin

If you review the documentation for that widget, you will find information about how to set the color of an event based on enumerations in the entity that contains the events. Maybe that's a good starting point for you.

Mike

answered
1

Currently, there are two calendar widgets available. I'm using the somewhat older one. Solution when using this widget: 

First you need a color enumeration in your Event entity. You can change this in your domain model. You also need to be able to select the color on your ‘Event_NewEdit’ page. 

Once the calendar widget has been dragged in place, I open the settings by double clicking. 

Go to the tab ‘View settings’. At the bottom it's possible to select your color enumeration. Under the enumeration, you can add new colors. (Check the image below).

I hope this helps :). 

answered