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

David H Nebinger,修改在10 个月前。 New Member 帖子: 5 加入日期: 24-5-27 最近的帖子

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 加入日期: 06-9-2 最近的帖子

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 加入日期: 24-5-27 最近的帖子

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 加入日期: 24-5-27 最近的帖子

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!