request.element.isStatic = 0; // Get the Configuration and Page Map Values appConfig = application.ptCalendar.getAppConfig(); cfDateDisplayMask = application.ptCalendar.getDisplayCFdateMask(); // "M/D/YYYY" - DATE FORMAT FOR DISPLAY cfDateLongDisplayMask = application.ptCalendar.getDisplayCFdateLongMask(); // "dddd mmmm d, yyyy" - DATE FORMAT FOR DISPLAY cfTimeDisplayMask = application.ptCalendar.getDisplayCFtimeMask(); // "h:mm tt" - TIME FORMAT FOR DISPLAY // - Get the ViewPageMode from the config viewPageMode = application.ptCalendar.getViewPageMode(); // - Set the Event Cache status from the configuration element useEventsCache = application.ptCalendar.getEventCacheStatus(); // - Verbose Output flag useVerboseOutput = application.ptCalendar.getVerboseOutputStatus(); searchFilterName = "eventsSearch"; if ( viewPageMode EQ "Single" ) searchFilterName = searchFilterName & "-" & request.page.id; else searchFilterName = searchFilterName & "-" & request.subsite.id; // Set a Dummy UUID so the DataSheet filter doesn't fail dummyEventID = "XXXXXXXX-AAAA-YYYY-ZZZZZZZZZZZZZZZZ"; // Set the filterIDlist if Event Filter form passes a value filterIDList = ""; if ( StructKeyExists(request,"ptCalendar") AND StructKeyExists(request.ptCalendar,searchFilterName) AND StructKeyExists(request.ptCalendar[searchFilterName],"eventIDlist") AND LEN(TRIM(request.ptCalendar[searchFilterName].eventIDlist)) ) filterIDList = request.ptCalendar[searchFilterName].eventIDlist; selectedStartDateValue = ""; selectedEndDateValue = ""; selectedFilterAction = ""; if ( StructKeyExists(request.params,"dsFilterStartDate") ) selectedStartDateValue = request.params.dsFilterStartDate; if ( StructKeyExists(request.params,"dsFilterEndDate") ) selectedEndDateValue = request.params.dsFilterEndDate; if ( StructKeyExists(request.params,"dsFilterAction") ) selectedFilterAction = request.params.dsFilterAction; /* ** getSearchResultsEventData SETTINGS *** */ // ptCalendar eventID processing for the calendar renderhandler returns as array of structs // -- THIS MUST BE INCLUDED ABOVE THE SEARCH RESULTS LIST eventData = application.ptCalendar.calRenderController.getSearchResultsEventData( eventIDList=filterIDList ,startDate=selectedStartDateValue ,endDate=selectedEndDateValue ,useEventsCache=useEventsCache ); // Reset the filter ID List if no Events are found if ( filterIDList EQ dummyEventID ) filterIDList = ""; linkedCalendarPageID = request.page.id; linkedCalendarSubsiteID = 1; if ( StructKeyExists(attributes,"calenderPageID") ) linkedCalendarPageID = attributes.calenderPageID; if ( StructKeyExists(attributes,"calenderSubsiteID") ) linkedCalendarPageID = attributes.calenderSubsiteID; // Get the view link data structure if ( application.ptCalendar.viewPageMode EQ "Single" ) { if ( LEN(TRIM(linkedCalendarPageID)) ) viewLinkData = application.ptCalendar.calRenderViewService.getCalViewPageStruct(pageURL=linkedCalendarPageID); else viewLinkData = application.ptCalendar.calRenderViewService.getCalViewPageStruct(); qParamDelimiter = "&"; } else { if ( LEN(TRIM(linkedCalendarSubsiteID)) AND IsNumeric(linkedCalendarSubsiteID) ) viewLinkData = application.ptCalendar.calPageMapDAO.getCalPageMapStruct(subsiteID=linkedCalendarSubsiteID); else viewLinkData = application.ptCalendar.calPageMapDAO.getCalPageMapStruct(); qParamDelimiter = "?"; } detailLink = ""; dailyLink = ""; weeklyListLink = ""; weeklyGridLink = ""; monthlyListLink = ""; monthlyGridLink = ""; if( structKeyExists(viewLinkData, "detailPage") and len(trim(viewLinkData.detailPage)) ) detailLink = viewLinkData.detailPage; if( structKeyExists(viewLinkData, "dailyPage") and len(trim(viewLinkData.dailyPage)) ) dailyLink = viewLinkData.dailyPage; if( structKeyExists(viewLinkData, "weeklyListPage") and len(viewLinkData.weeklyListPage) ) weeklyListLink = viewLinkData.weeklyListPage; if( structKeyExists(viewLinkData, "weeklyGridPage") and len(viewLinkData.weeklyGridPage) ) weeklyGridLink = viewLinkData.weeklyGridPage; if( structKeyExists(viewLinkData, "monthlyListPage") and len(viewLinkData.monthlyListPage) ) monthlyListLink = viewLinkData.monthlyListPage; if( structKeyExists(viewLinkData, "monthlyGridPage") and len(viewLinkData.monthlyGridPage) ) monthlyGridLink = viewLinkData.monthlyGridPage; // Output Cache Status (if verbose output is turned on) if ( useVerboseOutput ) application.ptCalendar.calEventsCacheService.renderCalendarCacheStatusHTML(eventsCacheStatusOverride=useEventsCache);
[ALL DAY] #timeFormat(eventData[itm].startTime, cfTimeDisplayMask)# - #timeFormat(eventData[itm].endTime, cfTimeDisplayMask)#
#dateStr#
Time: #timeStr#
Location: #eventData[itm].location#
No events match the search criteria.
Enter and submit criterica to search for events.

Active Event Filters: #Replace(activeCategoryList,',',', ','ALL')# | Select Event Types | #application.ptCalendar2.calendarService.renderClearFilters()# Select Event Types
Active Search Filters:
    
Date Range: #DateFormat(request.params.fromDate,"m/d/yyyy")# - #DateFormat(request.params.toDate,"m/d/yyyy")#
    
Regions: siteTaxObj = application.ptRegionSubsiteMap.getSiteTaxObj(); #siteTaxObj.getTermName(listGetAt(regions,i))#,

    
Keywords: #keywords#

Modify Search
#dateFormat(event.eventDate,"dddd, mmmm d, yyyy")#
#timeFormat(event.startTime, "h:mm tt")# - #timeFormat(event.endTime, "h:mm tt")#
Time: #timeStr#
Event: #event.title#
Location: #event.location#
No events match the search criteria.
--->