variables.defaultViewNameOption = "Month Grid"; variables.defaultViewTypeID = "MonthGrid"; variables.defaultViewPageVarName = "monthlyGridPage"; variables.defaultRHFolderPath = "/ADF/apps/pt_calendar/renderhandlers/"; variables.overrideRHFolderPath = "/_cs_apps/pt_calendar/renderhandlers/"; var typeArray = ArrayNew(1); var typeData = StructNew(); typeData = StructNew(); typeData.viewName = "Month Grid"; typeData.typeID = "MonthGrid"; typeData.pageVarName = "monthlyGridPage"; typeData.displayOrder = 1; arrayAppend(typeArray,typeData); typeData = StructNew(); typeData.viewName = "Month List"; typeData.typeID = "MonthList"; typeData.pageVarName = "monthlyListPage"; typeData.displayOrder = 2; arrayAppend(typeArray,typeData); typeData = StructNew(); typeData.viewName = "Week Grid"; typeData.typeID = "WeekGrid"; typeData.pageVarName = "weeklyGridPage"; typeData.displayOrder = 3; arrayAppend(typeArray,typeData); typeData = StructNew(); typeData.viewName = "Week List"; typeData.typeID = "WeekList"; typeData.pageVarName = "weeklyListPage"; typeData.displayOrder = 4; arrayAppend(typeArray,typeData); typeData = StructNew(); typeData.viewName = "Day List"; typeData.typeID = "DayList"; typeData.pageVarName = "dailyPage"; typeData.displayOrder = 5; arrayAppend(typeArray,typeData); // Quarter List should not one of the standard views /* typeData = StructNew(); typeData.viewName = "Quarter List"; typeData.typeID = "QuarterList"; typeData.pageVarName = "quarterlistPage"; typeData.displayOrder = 0; arrayAppend(typeArray,typeData);*/ return typeArray; var defaultViewName = getDefaultDisplayView(); return defaultViewName; var defaultViewName = variables.defaultViewNameOption; var defaultViewTypeID = getCalendarDefaultVeiwTypeID(); var viewTypeData = getCalendarTypeIDViewNameData(); if ( StructKeyExists(viewTypeData,defaultViewTypeID) ) defaultViewName = viewTypeData[defaultViewTypeID]; return defaultViewName; var defaultPageVar = variables.defaultViewPageVarName; var defaultViewTypeID = getCalendarDefaultVeiwTypeID(); var viewData = getCalendarTypeIDViewPageVarData(); if ( StructKeyExists(viewData,defaultViewTypeID) ) defaultViewName = viewData[defaultViewTypeID]; return defaultViewName; var typeArr = getCalendarViewTypes(); var typeData = {}; var vName = ''; var vTypeID = 0; var i = 0; for ( i=1; i <= ArrayLen(typeArr); i++ ) { vName = typeArr[i].viewName; vTypeID = typeArr[i].typeID; if ( NOT structKeyExists(typeData,vName) ) typeData[vName] = vTypeID; } StructSort(typeData,"textnocase","desc"); return typeData; var typeArr = getCalendarViewTypes(); var typeData = {}; var vName = ''; var vTypeID = 0; var i = 0; for ( i=1; i <= ArrayLen(typeArr); i++ ) { vName = typeArr[i].viewName; vTypeID = typeArr[i].typeID; if ( NOT structKeyExists(typeData,vTypeID) ) typeData[vTypeID] = vName; } StructSort(typeData,"textnocase","desc"); return typeData; var typeArr = getCalendarViewTypes(); var typeData = {}; var pgVarName = ''; var vTypeID = 0; var i = 0; for ( i=1; i <= ArrayLen(typeArr); i++ ) { pgVarName = typeArr[i].pageVarName; vTypeID = typeArr[i].typeID; if ( NOT structKeyExists(typeData,vTypeID) ) typeData[vTypeID] = pgVarName; } StructSort(typeData,"textnocase","desc"); return typeData; var typeArr = getCalendarViewTypes(); var typeData = {}; var pgVarName = ''; var vTypeID = 0; var i = 0; for ( i=1; i <= ArrayLen(typeArr); i++ ) { pgVarName = typeArr[i].pageVarName; vTypeID = typeArr[i].typeID; if ( NOT structKeyExists(typeData,pgVarName) ) typeData[pgVarName] = vTypeID; } StructSort(typeData,"textnocase","desc"); return typeData; var typeData = getCalendarViewNameTypeIDData(); if ( StructKeyExists(typeData,arguments.viewName) ) return typeData[arguments.viewName]; else return ""; var typeData = getCalendarTypeIDViewNameData(); if ( StructKeyExists(typeData,arguments.typeID) ) return typeData[arguments.typeID]; else return ""; var typeData = getCalendarTypeIDViewPageVarData(); if ( StructKeyExists(typeData,arguments.typeID) ) return typeData[arguments.typeID]; else return ""; var retData = StructNew(); retData['EventDetails'] = getEventDetailsDisplayViewPath(); retData['DayList'] = getDayListDisplayViewPath(); retData['WeekList'] = getWeekListDisplayViewPath(); retData['WeekGrid'] = getWeekGridDisplayViewPath(); retData['MonthList'] = getMonthListDisplayViewPath(); retData['MonthGrid'] = getMonthGridDisplayViewPath(); return retData; var rhFileName = "calendar_display_event_details_rh.cfm"; return getDisplayViewFilePath(rhFileName); var rhFileName = "calendar_display_day_list_rh.cfm"; return getDisplayViewFilePath(rhFileName); var rhFileName = "calendar_display_week_list_rh.cfm"; return getDisplayViewFilePath(rhFileName); var rhFileName = "calendar_display_week_grid_rh.cfm"; return getDisplayViewFilePath(rhFileName); var rhFileName = "calendar_display_month_list_rh.cfm"; return getDisplayViewFilePath(rhFileName); var rhFileName = "calendar_display_month_grid_rh.cfm"; return getDisplayViewFilePath(rhFileName); return variables.defaultRHFolderPath; return variables.overrideRHFolderPath; var retRHFilePath = ""; var rhFileName = TRIM(arguments.viewFileName); var rhDefaultFilePath = getCalendarDisplayViewDefaultRHFolderPath(); var rhOverRideFilePath = getCalendarDisplayViewOverrideRHFolderPath(); rhDefaultFilePath = rhDefaultFilePath & rhFileName; rhOverRideFilePath = rhOverRideFilePath & rhFileName; if ( FileExists(ExpandPath(rhOverRideFilePath)) ) retRHFilePath = rhOverRideFilePath; else if ( FileExists(ExpandPath(rhDefaultFilePath)) ) retRHFilePath = rhDefaultFilePath; return retRHFilePath;