this.ElementName = "Event Categories";
this.CCAPIName = "EventCategories";
this.ElementIDfield = "catID";
var catStruct = StructNew();
var catArray = Application.ptCalendar2.ceData.getCEData(this.ElementName,"name",arguments.categoryName);
if ( ArrayLen(catArray) )
catStruct = catArray[1];
return catStruct;
var catArray = ArrayNew(1);
var catStruct = StructNew();
var i = 1;
var x = 1;
var ceName = "";
for (i=1;i LTE ListLen(arguments.categoryNameList); i=i+1) {
catName = ListGetAt(arguments.categoryNameList, i);
catStruct = getEventCategoryByCatName(catName);
if ( structKeyExists(catStruct,"PageID") AND IsNumeric(catStruct.PageID) ) {
catArray[x] = catStruct;
x = x + 1;
}
}
return catArray;
var catArray = getCategoryArrayByCatNameList(arguments.categoryNameList);
var userList = "";
var userID = "";
var i = 1;
var u = 1;
for (i=1;i LTE ArrayLen(catArray); i=i+1) {
for (u=1;u LTE ListLen(catArray[i].values.NotificationUserIDs); u=u+1) {
userID = ListGetAt(catArray[i].values.NotificationUserIDs,u);
if ( ListFindNoCase(userList,userID) EQ 0 ) {
userList = ListAppend(userList, userID);
}
}
}
return userList;
var retStatusStruct = "failed";
// Create the CS Content CFC
var csContent = server.ADF.objectFactory.getBean("CSContent_1_0");
//application.ADF.utils.doDump(arguments.dataValues,"arguments.dataValues", false);
// Create the page
retStatusStruct = csContent.populateContent(this.CCAPIName, arguments.dataValues);
/* retStatusStruct RETURNS: CONTENTUPDATED : true/false & CONTENTUPDATERESPONSE: Success:1 */
return retStatusStruct;