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

David H Nebinger, modificado hace 10 meses. New Member Mensajes: 5 Fecha de incorporación: 27/05/24 Mensajes recientes

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, modificado hace 10 meses. Liferay Legend Mensajes: 14933 Fecha de incorporación: 2/09/06 Mensajes recientes

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, modificado hace 10 meses. New Member Mensajes: 5 Fecha de incorporación: 27/05/24 Mensajes recientes

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, modificado hace 10 meses. New Member Mensajes: 5 Fecha de incorporación: 27/05/24 Mensajes recientes

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!