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

Accepted Solutions (0)

Answers (3)

Answers (3)

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

0 Kudos

Hi Jaromir,

Thanks for the quick reply.

Actually we have an issue with the appointment. We have a requirment to show more than 100 appointments for a row in the planning calendar. Is that possible? your advice will be really helpful.

Thanks in Advance,

Best Regards,

Dineshkumar

former_member751591
Participant
0 Kudos

Thanks for coming to SAP Community for answers. Please post your question as a new question here:

Since you're new in asking questions here, check out our tutorial about asking and answering questions (if you haven't already), as it provides tips for preparing questions more effectively, that draw responses from our members.

Please note, that your post here won't be answered.

former_member770571
Discoverer
0 Kudos

I dont know, because I change calendar for reservation rooms, rooms were rows in my app and appointment was only one(free x occupied), but I think that setSizeLimit resolved your problem too. You can increase the model size. You can sum up all items in your model and set limit. In other projects I tried increase up to 10000. It is not recommended as best practice, but it is functional.

Jaromir

0 Kudos

I tried the solution given by zafer.onbas, but I was not able to increase the row limit of the planning calendar. Could you please suggest any other alternative to do the same.

Do single planning calendar also have this similar kind of restrictions (limit of 100 by default)?

And if yes, can you give any solution to overcome this issue in single planning calendar also.

I need solution for both planning calendar and single planning calendar.

Thanks and regards,

Kavya M