// This script MUST remain dynamic since the data and the generated HTML is modified with a URL parameters
request.element.isStatic = 0;
// 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 = "Grid"; // (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
)#