掲示板
API javadoc for CalendarBookingLocalService
6年前 に Sourabh Lonikar によって更新されました。
API javadoc for CalendarBookingLocalService
Junior Member 投稿: 42 参加年月日: 16/11/14 最新の投稿
Hi All,
I am trying to get start date of calendar event using James answer RE: How to access Calendar Event fields in Application Display Template (AD . I am unable to locate javadoc for class com.liferay.calendar.service.CalendarBookingLocalService which contains method getStartTime() and getEndTime().
Can someone point me out link to javadoc.
Thanks
I am trying to get start date of calendar event using James answer RE: How to access Calendar Event fields in Application Display Template (AD . I am unable to locate javadoc for class com.liferay.calendar.service.CalendarBookingLocalService which contains method getStartTime() and getEndTime().
Can someone point me out link to javadoc.
Thanks
6年前 に Travis Cory によって更新されました。
RE: API javadoc for CalendarBookingLocalService
Junior Member 投稿: 73 参加年月日: 13/06/04 最新の投稿
6年前 に Sourabh Lonikar によって更新されました。
RE: API javadoc for CalendarBookingLocalService
Junior Member 投稿: 42 参加年月日: 16/11/14 最新の投稿
Hi Travis,
CalendarBookingLocalService javadoc does not have methods getStartTime() and getEndTime(). But they are present and I can use them in ftl.
Can you point me to javadoc has these methods ?
CalendarBookingLocalService javadoc does not have methods getStartTime() and getEndTime(). But they are present and I can use them in ftl.
Can you point me to javadoc has these methods ?
6年前 に Olaf Kock によって更新されました。
RE: API javadoc for CalendarBookingLocalService
Liferay Legend 投稿: 6403 参加年月日: 08/09/23 最新の投稿Sourabh Lonikar:
CalendarBookingLocalService javadoc does not have methods getStartTime() and getEndTime(). But they are present and I can use them in ftl.
I bet you can't use those methods on CalendarBookingLocalService, as you correctly state that they're not there. You can use them on CalendarBooking, the entity that the service maintains and provides. And CalendarBooking gets it from CalendarBookingModel.
However, the Javadoc for this method is about as enlightning as I would expect from a getter...
6年前 に Sourabh Lonikar によって更新されました。
RE: API javadoc for CalendarBookingLocalService
Junior Member 投稿: 42 参加年月日: 16/11/14 最新の投稿
Hi Olaf,
You are correct that i call those methods on CalendarBooking. I am getting correct time in msec on calling getStartDate(). Any idea how to format it to display date ?
Below code gives wrong date '2014-09-15 ' even though it is 2017-07-18 in millisecond.
calBookingEntry.getStartTime()?datetime("ssssssssssssssss")?string["yyyy-MM-dd"]
I have tried all formatting combination (?date, ?datetime, ?time)
You are correct that i call those methods on CalendarBooking. I am getting correct time in msec on calling getStartDate(). Any idea how to format it to display date ?
Below code gives wrong date '2014-09-15 ' even though it is 2017-07-18 in millisecond.
calBookingEntry.getStartTime()?datetime("ssssssssssssssss")?string["yyyy-MM-dd"]
I have tried all formatting combination (?date, ?datetime, ?time)
6年前 に Sourabh Lonikar によって更新されました。
RE: API javadoc for CalendarBookingLocalService
Junior Member 投稿: 42 参加年月日: 16/11/14 最新の投稿
I was able to get start date using below:
<#assign calService = utilLocator.findUtil("calendar-portlet", "com.liferay.calendar.service.CalendarBookingLocalService") />
<#assign calBookingEntry = calService.getCalendarBooking(assetRenderer.getClassPK()) />
<#assign startTime = calBookingEntry.getStartTime()?number?number_to_datetime?string["yyyy-MM-dd"] />
<#assign calService = utilLocator.findUtil("calendar-portlet", "com.liferay.calendar.service.CalendarBookingLocalService") />
<#assign calBookingEntry = calService.getCalendarBooking(assetRenderer.getClassPK()) />
<#assign startTime = calBookingEntry.getStartTime()?number?number_to_datetime?string["yyyy-MM-dd"] />