KVSPSAJob Time Web Calendar#
Procedures#
SetDisableAllowClick(Boolean) :#
Summary: A procedure to set if the calendar control should allow clicking on dates, which would open the time recording page.
procedure SetDisableAllowClick(DisableClick: Boolean):
Parameters:
DisableClick: If set to true, the control wont be clickable. Default is false.
Events#
OnBeforeZDETimeRecordingRunOnCalendarControlDateClicked(Code[20], Record Date, Boolean) :#
Summary: Event is called after a date is clicked within the calendar control addin but before the associated time recording page is opened. This allows to set the event as handled, which prevents the default behavior of opening the time recording page, or to manipulate the date record that is used to open the time recording page with the desired filters.
[IntegrationEvent(false, false)]
local procedure OnBeforeZDETimeRecordingRunOnCalendarControlDateClicked(ResourceNo: Code[20]; var DateRec: Record "Date"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Page, Page::"KVSPSAJob Time Web Calendar", 'OnBeforeZDETimeRecordingRunOnCalendarControlDateClicked', '', false, false)]
local procedure DoSomethingOnBeforeZDETimeRecordingRunOnCalendarControlDateClicked(ResourceNo: Code[20]; var DateRec: Record "Date"; var IsHandled: Boolean)
begin
end;
Parameters:
ResourceNo: The resource number for which the date was clicked.DateRec: The filtered date record containing the clicked date information.IsHandled: Output parameter that indicates whether the event has been handled. Set to true to prevent default processing.