GanttChart how to use CalendarDefs (documentation)
Hello there,
I try to use CalendarDefs to render weekends/holidays. Unfortunately there is no example code on the explored (https://sapui5.hana.ondemand.com/) website. Could you provide a running example how to use it? I would appreciate your help.
Regards,
Jan
Hello @Myge91 , Thank you for sharing this finding. I've created an internal incident 1780432934. The status of the issue will be updated here in GitHub. Regards, Diana
Hello @Myge91 ,Thanks very much for your feedback. We will enhance the current example in https://sapui5.hana.ondemand.com/#/sample/sap.gantt.sample.BasicGanttChart/preview to include calendar.
Please stay tune.
Regards, Ethan
Hi @Myge91 , we have enhanced the demokit, you can check the latest sample with the link: http://veui5infra.dhcp.wdf.sap.corp:8080/sapui5-sdk-dist/#/sample/sap.gantt.sample.BasicGanttChart/preview
Hi @webber-4-ever ,
thanks for sharing this link. I am not able to open it. Also I don't see the documentation here: https://sapui5.hana.ondemand.com/#/entity/sap.gantt.GanttChartContainer
When do you provide the update documentation on https://sapui5.hana.ondemand.com/
Regards
Jan
Hi @webber-4-ever , i also have problems to open the link. it seems to be an intern link, so i cant make it to having a look at the content. can you please provide the code snipped in jsbin or in a github rep or sth else?
@Myge91 : did you solve it meanwhile? i'm really looking forward a solution to visualize calendardefs for weekends.
i already posted a question at https://answers.sap.com/questions/420579/sapui5-gantt-problem-using-calendardef.html.
Best regards, Stephan
Hi @webber-4-ever ,
sap.corp links are accessible in the SAP internal network and not from outside! Could you provide a link accessible for everyone?
Regards, DerGuteWolf
Hi All,
Sorry for the late reply, I was on vacation. I need to check with my colleagues when the enhancement will be available in the external link.
BR,Chris
Hi all,
FYI: the problem has been solved and calendar defs are now working:

Detailed post @ https://answers.sap.com/questions/420579/sapui5-gantt-problem-using-calendardef.html
if you need more advise just ask.
Best regards, Stephan
Hello,
I also try working with the GANTT chart. I also miss some details in the documentation. For me it would be very helpful to set some text or tooltip information for the "calendarDef". Lets say, I want to add 2 calendars, one for the weekends and one for some country specific none working days. I want to add a text or tooltip (better would be a text, I think) to the calendar definition, so that the user can see directly what kind of day it is (e.g. christmas eve). I searched a lot thru the internet, but until now I don't really found a way to display these information at calendar definition. For the AddHocLine I can add a tooltip and it would be displayed. Also for the BaseRectangle a text and tooltip can be added. But for the TimeIntervall for a calendar definition I can't. Has someone any information about it and would help me? Thanks a lot.
Best regards Sascha
Hi,
As you can see from the example, it is now possible to add title and icons on the calendars - Please refer to example https://sapui5.hana.ondemand.com/#/entity/sap.gantt.simple.GanttChartWithTable/sample/sap.gantt.sample.GanttChart2Calendar to check further.
You can provide the Calendar def as before and add them as an aggregation to the Gantt chart as before. And in the corresponding BaseCalendar you add in the GanttRowSettings, you can add the properties title to make the text come up.
Please refer to the documentation https://sapui5.hana.ondemand.com/#/api/sap.gantt.simple.BaseCalendar and its parent class https://sapui5.hana.ondemand.com/#/api/sap.gantt.simple.BaseShape and https://sapui5.hana.ondemand.com/#/api/sap.gantt.simple.BaseRectangle to know more
Thanks, Reshma