// This script MUST remain dynamic since 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 getRenderEventFilteredCategoryData SETTINGS *** */ // -- THIS MUST ME INCLUDED AT THE TOP OF THE calendar_category_checkbox_list_rh RenderHandler (before getRenderEventFilteredCategoryData) // - ptCalendar Events Date Range designation viewRangeType = "Month"; // (Month/Week/Day) // Set the view param defaults currViewType = application.ptCalendar.getDefaultDisplayView(); viewParamName = application.ptCalendar.getViewParamName(); if ( StructKeyExists(request,"params") AND StructKeyExists(request.params,viewParamName) ) currViewType = request.params[viewParamName]; // Chenge the Range base on the VIEW that is being displayed switch(currViewType) { case "monthgrid": case "monthlist": viewRangeType = "Month"; break; case "weekgrid": case "weeklist": viewRangeType = "Week"; break; case "daylist": viewRangeType = "Day"; break; default: viewRangeType = "Month"; // (Month/Week/Day) } // - 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 /* ** getRenderEventFilteredCategoryData 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) eventCategoryData = application.ptCalendar.calRenderController.getRenderEventFilteredCategoryData( displayPropsArray=items ,viewRangeType=viewRangeType ,useEventsCache=useEventsCache ); // Set the category items request variable to be shared with the Calegory Checkbox list render handler request.ptCalendar.category.items = eventCategoryData; // Get the Display view Render Handler Path Structure rhFileName = "calendar_category_checkbox_list_rh.cfm"; rhDefaultFilePath = application.ptCalendar.calRenderViewDAO.getCalendarDisplayViewDefaultRHFolderPath(); rhOverRideFilePath = application.ptCalendar.calRenderViewDAO.getCalendarDisplayViewOverrideRHFolderPath(); rhDefaultFilePath = rhDefaultFilePath & rhFileName; rhOverRideFilePath = rhOverRideFilePath & rhFileName; retRHFilePath = ""; // Get the Calendar Event Categories Render Handler Path; if ( FileExists(ExpandPath(rhOverRideFilePath)) ) retRHFilePath = rhOverRideFilePath; else if ( FileExists(ExpandPath(rhDefaultFilePath)) ) retRHFilePath = rhDefaultFilePath;
The calendar event categories list render handler could not be found!