openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

GanttChart how to use CalendarDefs (documentation)

Open Myge91 opened this issue 9 years ago • 10 comments

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

Myge91 avatar Nov 23 '17 13:11 Myge91

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

Shtilianova avatar Nov 27 '17 06:11 Shtilianova

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

zhjuncai avatar Dec 07 '17 01:12 zhjuncai

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

webber-4-ever avatar Dec 21 '17 08:12 webber-4-ever

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

Myge91 avatar Feb 19 '18 08:02 Myge91

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

stephan99999 avatar Mar 21 '18 07:03 stephan99999

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

DerGuteWolf avatar Mar 21 '18 08:03 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

webber-4-ever avatar Apr 05 '18 09:04 webber-4-ever

Hi all,

FYI: the problem has been solved and calendar defs are now working: image

Detailed post @ https://answers.sap.com/questions/420579/sapui5-gantt-problem-using-calendardef.html

if you need more advise just ask.

Best regards, Stephan

stephan99999 avatar Apr 05 '18 09:04 stephan99999

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

pa775 avatar Aug 18 '19 10:08 pa775

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

ReshmaVarma18 avatar Mar 25 '22 07:03 ReshmaVarma18