application.ptCalendar.scripts.loadJQuery();
// these may or may not be indirectly loaded by scripts this calls, so if we're detecting resources, ONLY, load them now
// if we're not detecting resources, the scripts themselves will do it
application.ptCalendar.scripts.loadJQueryUI(themeName=application.ptCalendar.getUItheme());
application.ptCalendar.scripts.loadQTip();
application.ptCalendar.scripts.loadJQueryImagesLoaded();
application.ptCalendar.scripts.loadADFLightbox();
application.ptCalendar.scripts.loadFontAwesome();
// This script MUST remain dynamic since the data and the generated HTML is modified with a URL parameters
request.element.isStatic = 0;
request.element.hasData = 1;
// Get the Configuration and Page Map Values
appConfig = application.ptCalendar.getAppConfig();
// Set the Event Cache status from the configuration element
useEventsCache = application.ptCalendar.getEventCacheStatus();
// Get the items from the Display Properties Custom Element
items = attributes.elementInfo.elementData.propertyValues;
/* ** ptCalendar getRenderEventsData SETTINGS *** */
// -- THESE MUST ME INCLUDED AT THE TOP OF THE ptCalendar GRID/LIST RenderHandlers (before getRenderEventData)
// - ptCalendar Date Range designation
viewRangeType = "Week"; // (Month/Week/Day)
viewDisplayType = "List"; // (Grid/List)
// - ptCalendar EventsCache designation (generally this will be true. May need to set to false for debugging)
// useEventsCache = false; // (true/false) // Use this as an override for the Global setting that is managed via the Configuration element
/* ** getRenderEventsData SETTINGS *** */
// ptCalendar date and data processing the calendar renderhandler return as CF query object
// -- THIS MUST BE INCLUDED AT THE TOP OF THE ptCalendar GRID/LIST RenderHandlers (after the getRenderEventData Settings)
eventData = application.ptCalendar.calRenderController.getRenderEventData(
displayPropsArray=items
,viewRangeType=viewRangeType
,useEventsCache=useEventsCache
);
//application.ptCalendar.utils.doDump(eventData,"eventData",0);
#application.ptCalendar.calRenderController.createCalendar(
rangeType=viewRangeType
,displayType=viewDisplayType
,calendarData=eventData
,eventField="eventDate"
,curYear=request.ptCalendar.thisYear
,curMonth=request.ptCalendar.thisMonth
,curDay=request.ptCalendar.thisDay
)#