Calendar Widget - Change viewable time window

0
Hello,   I  would like to customise the start and end time of the calendar view. This is needed for displaying a work week view e.g 08:00 - 16:00 Mon-Friday should be the only time viewable in a calendar view. I can achieve the Mon-Fri aspect by creating a custom view.   However there are still no options to customise the start and end times for this view. I have looked at other threads in the forum such as this one from over 8 years ago which does have a solution but this was never merged into the Mendix Widget. I have tried to make those modifications to the xml file but it has changed significantly since then and those parameters are no longer in the file.   Does anybody know of a solution to this?    Many thanks,    
asked
2 answers
1

Hi Luke, 

 

unfortunately this is not implemented yet. As Mehmet shows you can in total define the calendar open from time x to time y but if you have different "opening times" whithin the week it get difficult. 

 

We solved this with "blocker" events. We created individual "blocker" based on a blocker configuration.

 

So at monday the calendar is blocked from 00:01 to 07:59 and open from 08:00 until 16:59 and closed again from 17:00 until 23:59. (00:00 is difficult because it leads to events to the next day)

 

The so far "blocker" events have a boolean  that they are blocker and cannot be moved, deleted or other events being created at the time. 

 

To make this working you need to continously create new blocker for the future with every new day.

 

Not the best solution but works for us. I asked the MX team to implement "Opening times" with the next MX calendar widget release :-)

 

Greetings,

Timo

 

 

 

 

 

 

 

 

  

answered
0

There is a view start and view end attribute. Did you look into that? 

image.png

answered