cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Planning Calendar max limit rows

Hi, can you help me anybody with max row limit in planning calendar. I have read in guidelines that I can use it for less than 100 lines. Then it's better to use Gantt chart. But now it's necessary for me to use planning calendar. Is it possible to increase this limit anywhere in this component. I didn't find any constant in source code.

Thanks for answers.

Jaromir

0 Kudos

Hi Jaromir,

Did you find the solution for this issue? I am also stuck here. It will be really helpful if you share the solution. Thanks in advance.


Best Regards,

Dineshkumar

former_member770571
Discoverer
0 Kudos

Hi Dineshkumar, I resolved this problem with standard function setSizeLimit as bellow

-----------------------------------------
controller
let oModel = new JSONModel({})
.....
oModel.setSizeLimit(500);

oModel.setProperty("/rows", [array])

that.setModel(oModel, "modelname")

---------------------------------------
view
<PlanningCalendar id="PC1" startDate="{path: 'modelName>/startDate''}" rows="{path: 'modelName>/rows/'}" appointmentsVisualization="Filled" appointmentSelect="handleAppointmentClick" appointmentsReducedHeight="false" rowHeaderClick="handleRowHeaderClick" appointmentClick="handleAppointmentClick" showIntervalHeaders="true" showEmptyIntervalHeaders="false" viewKey="One Month" intervalSelection="true" intervalSelect="handleIntervalSelect" startDateChange="onChangeInterval" stickyHeader="true">

Best Regards,

Jaromir

View Entire Topic
zaferonbas
Participant

Hi Jaromír,

If we're talking about planning calendar rows, you can surely increase the size limit for your JSONModel. If you don't set it, the default size will be 100, so you can only see top 100 records in your calendar.

Set the size limit as you like;

this.getView().getModel("yourJSONModel").setSizeLimit(1000);

But for the appointments / intervalHeaders;
It seems like, each row/person can have up to 100 appointments/intervalHeaders. Because of this, I'm fetching the data for every "startDateChange" event in my application.

Thanks,
Zafer