Ask - Test
RE: How Can I create a calendar in the Liferay 2024.q1 using the mvc-portlet
How Can I create a calendar in the Liferay 2024.q1 using the mvc-portlet
New Member Posts: 4 Join Date: 5/27/24 Recent PostsI'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?
RE: How Can I create a calendar in the Liferay 2024.q1 using the mvc-portlet
Liferay Legend Posts: 14933 Join Date: 9/2/06 Recent PostsThere'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.
RE: How Can I create a calendar in the Liferay 2024.q1 using the mvc-portlet
New Member Posts: 4 Join Date: 5/27/24 Recent PostsI 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!
RE: How Can I create a calendar in the Liferay 2024.q1 using the mvc-portlet
New Member Posts: 4 Join Date: 5/27/24 Recent PostsI 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!
Powered by Liferay™