variables.componentName = "degreeDAO"; variables.ElementName = getDegreeCEName(); variables.ElementIDfield = "uniqueID"; variables.ElementNameField = "degreeName"; var verifyViewTable = application.ptCourseCatalog.ceData.verifyViewTableExists(customElementName=variables.ElementName); var retArray = ArrayNew(1); if ( verifyViewTable ) { 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); } return retArray; var retString = ""; var retArray = getDegrees(idFieldName=variables.ElementIDfield,uniqueID=arguments.degreeID); if ( ArrayLen(retArray) AND StructKeyExists(retArray[1],"values") AND StructKeyExists(retArray[1].values,variables.ElementNameField) AND LEN(TRIM(retArray[1].values[variables.ElementNameField])) ) retString = retArray[1].values[variables.ElementNameField]; return retString;