variables.componentName = "courseDAO";
variables.ElementName = getCourseCEName();
variables.ElementIDfield = "uniqueID";
variables.CCAPIName = getCCAPIName(variables.elementName);
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 verifyViewTable = application.ptCourseCatalog.ceData.verifyViewTableExists(customElementName=variables.ElementName);
var retArray = ArrayNew(1);
if ( verifyViewTable ) {
retArray = application.ptCourseCatalog.ceData.getCEDataView(customElementName=variables.elementName,
searchFields=arguments.searchFields,
searchValues=arguments.searchValues,
queryType='search'
);
}
return retArray;
return getCourses(idFieldName="dbCourseID", uniqueID=arguments.extCourseID);
var retString = "";
var retArray = getCourseByExternalCourseID(extCourseID=arguments.extCourseID);
if ( ArrayLen(retArray) AND StructKeyExists(retArray[1],"values") AND StructKeyExists(retArray[1].values,"uniqueID") AND LEN(TRIM(retArray[1].values.uniqueID)) )
retString = retArray[1].values.uniqueID;
return retString;
var retString = "";
var retArray = getCourseByExternalCourseID(extCourseID=arguments.extCourseID);
if ( ArrayLen(retArray) AND StructKeyExists(retArray[1],"values") AND StructKeyExists(retArray[1].values,"prereqCourseIDList") AND LEN(TRIM(retArray[1].values.prereqCourseIDList)) )
retString = retArray[1].values.prereqCourseIDList;
return retString;
var retStatusStruct = application.ptCourseCatalog.csContent.populateContent(variables.CCAPIName, arguments.dataValues);
/* retStatusStruct RETURNS: CONTENTUPDATED : true/false & CONTENTUPDATERESPONSE: Success:1 */
return retStatusStruct;