variables.componentName = "catalogYearDAO"; variables.ElementName = getCatalogYearCEName(); variables.ElementIDfield = "uniqueID"; variables.ElementNameField = "Name"; var retArray = ArrayNew(1); if ( LEN(TRIM(arguments.idFieldName)) AND LEN(TRIM(arguments.uniqueID)) ) retArray = application.ptCourseCatalog.ceData.getCEDataView(customElementName=variables.ElementName,customElementFieldName=TRIM(arguments.idFieldName),item=TRIM(arguments.uniqueID),queryType="selected"); else retArray = application.ptCourseCatalog.ceData.getCEDataView(customElementName=variables.ElementName); // Sort the Array if ( LEN(TRIM(arguments.sortFieldName)) ) retArray = application.ptCourseCatalog.ceData.arrayOfCEDataSort(aOfS=retArray,key=arguments.sortFieldName,sortOrder=arguments.sortOrder); return retArray; var ceArray = ArrayNew(1); var retString = ""; if ( LEN(arguments.uniqueID) ) { ceArray = getCatalogYears(idFieldName=variables.ElementIDfield,uniqueID=arguments.uniqueID); if ( ArrayLen(ceArray) AND StructKeyExists(ceArray[1],"values") AND StructKeyExists(ceArray[1].values,variables.ElementNameField) ) retString = ceArray[1].values[variables.ElementNameField]; } return retString; var defaultID = getDefaultCatalogYearID(); var retString = ""; // Get the cache dashboard url from the config element if ( LEN(TRIM(defaultID)) ) retString = getCatalogYearNameByID(uniqueID=defaultID); return retString;