application.ptCalendar.scripts.loadJQuery();
application.ptCalendar.scripts.loadJQueryUI(themeName=application.ptCalendar.getUItheme());
application.ptCalendar.scripts.loadADFLightbox();
request.element.isStatic = 0;
appName = application.ptCalendar.getAppBeanName();
// Get the Configuration and Page Map Values
appConfig = application.ptCalendar.getAppConfig();
// Set the UI theme from the Configuration Element
uiTheme = application.ptCalendar.getUItheme();
// Set the Verbose Output setting from the Configuration Element
useVerboseOutput = application.ptCalendar.getVerboseOutputStatus();
// Set the useEventCache flag for the management events search filtering from the configuration element
useEventsCache = application.ptCalendar.getEventsManagementEventCacheStatus();
// If the App is set to use the Events Cache then we should still do the Events Cache Callbacks for creates/updates/deletes
useEventsCacheCallbacks = application.ptCalendar.getEventCacheStatus();
// - EventsCache Manual Override
//useEventsCache = false; // (true/false) - Use this as an override for the Global settings that are managed via the Configuration element
// - Debug Callback Output flag
debugCallbackOutput = false;
/* ** ptCalendar getRenderEventsData SETTINGS *** */
// -- THESE MUST ME INCLUDED AT THE TOP OF THE ptCalendar GRID/LIST RenderHandlers (before getRenderEventData)
// - ptCalendar Date Range designation
viewRangeType = "Month"; // (Month/Week/Day)
viewDisplayType = "Grid"; // (Small/Grid/List)
showAdminEditDeleteButtons = true;
// Set the filterIDlist if Event Filter form passes a value
filterIDList = "";
if ( StructKeyExists(request,"ptCalendar")
AND StructKeyExists(request.ptCalendar,"eventManager")
AND StructKeyExists(request.ptCalendar.eventManager,"eventIDlist")
AND LEN(TRIM(request.ptCalendar.eventManager.eventIDlist)) )
filterIDList = request.ptCalendar.eventManager.eventIDlist;
/* ** getRenderEventsData SETTINGS *** */
// ptCalendar date and data processing for the calendar renderhandler returns as an array of structs
// -- THIS MUST BE INCLUDED ABOVE THE EVENTS MANANGEMENT GRID
eventData = application.ptCalendar.calRenderController.getRenderManagementEventData(
viewRangeType=viewRangeType
,eventIDList=filterIDList
,useEventsCache=useEventsCache
);
// Callback Parameters
esController = "calEventsConfirmController";
dtbController = "dateTimeBuilderController";
rbController = "recurrenceBuilderController";
// load header for the Calendar CSS for the Calendar management Grid
application.ptCalendar.calService.loadCalendarCSS();
// load header for the Calendar Admin CSS
application.ptCalendar.calService.loadCalendarAdminCSS();
// Output Cache Status (if verbose output is turned on)
if ( useVerboseOutput )
application.ptCalendar.calEventsCacheService.renderCalendarCacheStatusHTML(eventsCacheStatusOverride=useEventsCache);
#application.ptCalendar.calRenderService.createMonthAsGrid(
curMonth=request.ptCalendar.thisMonth
,curYear=request.ptCalendar.thisYear
,calendarData=eventData
,eventField="eventDate"
,showAdminTools=showAdminEditDeleteButtons
)#