cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 - GANTT - Calendar in backround - CalendarDef max. amount of Dates is 100

BjörnB
Participant

Hi all,

i'm working with the SAPUI5 Gantt-Chart and want to visualize via the CalendarDefs the weekends and freeday from workingcalendar.

This works, BUT i could only visualize the first 100 entries. After the last 100 the lines are no more visualized.

Does anybody know if there is an fix limitation or if i'm doing something wrong?

You can see the grey lines in the background.

My implementation looks like this:

oGanttChartWithTable.setCalendarDef(new sap.gantt.def.cal.CalendarDefs({
				defs: {
					path: "data>/calendar",
					template: new Calendar({
						key: "{data>id}",
						backgroundColor: "@sapNeutralColor",
						timeIntervals: {
							path: "data>data",
							templateShareable: true,
							template: new sap.gantt.def.cal.TimeInterval({
								startTime: "{data>startTime}",
								endTime: "{data>endTime}"
							})
						}
					})
				}
			}));

Can anybody help me in this topic?

Thank you and kind regards,

Björn

Accepted Solutions (1)

Accepted Solutions (1)

BjörnB
Participant
0 Kudos

Hi all.

I solved it.

The problem is on the JSON-Model which if used to fill the chart.

You have to set the sizeLimit on more than 100. In my case:

this._oODataJSONModel.setSizeLimit(2500);

This works fine.

Answers (1)

Answers (1)

yakov
Explorer
0 Kudos

Hi Bjorn!

I have a problrm with weekends visualization/ Can you help me this topic? Do you specify any shape for CalendarDefs?