How Can I create a calendar in the Liferay 2024.q1 using the mvc-portlet

تم تعديل David H Nebinger منذ 10 أشهر من الدقائق. New Member المشاركات: 5 تاريخ الإنضمام: 27‏/5‏/24 المشاركات الحديثة

I'm developing an MVC portlet along with a Service Builder module to manage work shifts. I need to integrate a calendar component that reflects all the data created through this system (such as shifts and schedules) in the calendar interface. However, I'm not sure how to link the backend logic with the calendar UI. Could you guide me on how to properly connect the data from the Service Builder to the calendar in the portlet?

thumbnail
تم تعديل David H Nebinger منذ 10 أشهر من الدقائق. Liferay Legend المشاركات: 14933 تاريخ الإنضمام: 2‏/9‏/06 المشاركات الحديثة

There's no way to directly link your custom entities to calendar entries, you'll need to manage them yourself.

The calendar comes with its own set of APIs for creating events and such, and like all other SB entities each one has a long as the primary key for the entry.

So from your entities, you can either store the calendar entry id in your entity (if there can be only one) or else you'll need to manage a join table if many to many.

تم تعديل David H Nebinger منذ 10 أشهر من الدقائق. New Member المشاركات: 5 تاريخ الإنضمام: 27‏/5‏/24 المشاركات الحديثة

I understand the situation better now. I’ve considered a few approaches — like connecting my Service Builder module to the CalendarBooking table, using Liferay Objects, or just continuing with the custom implementation I’ve started. This feature is really important for the site I'm building, and since Liferay doesn't provide work shift management for employees in the way that's required, I'm developing it myself and figuring things out as I go. Thanks again for your help!

تم تعديل David H Nebinger منذ 10 أشهر من الدقائق. New Member المشاركات: 5 تاريخ الإنضمام: 27‏/5‏/24 المشاركات الحديثة

I understand the situation better now. I’ve considered a few approaches — like connecting my Service Builder module to the CalendarBooking table, using Liferay Objects, or just continuing with the custom implementation I’ve started. This feature is really important for the site I'm building, and since Liferay doesn't provide work shift management for employees in the way that's required, I'm developing it myself and figuring things out as I go. Thanks again for your help!