celldata = ""; recordList = ""; recordListCount = 0; recordListHTML = ""; customDelimiter = "|"; // Get the Element Data as a list form for the IDs in stored column values recordList = application.ptCalendar.calEventCategoriesDAO.getEventCategoryNames(uniqueID=request.datasheet.currentColumnValue,delimiter=customDelimiter); // Count the generated list if ( LEN(TRIM(recordList)) ) recordListCount = ListLen(recordList,customDelimiter); // Modify the list for display recordListHTML = recordList; if ( recordListCount LTE 0 ) recordListHTML = "[None Selected]"; else recordListHTML = REPLACE(recordListHTML,customDelimiter,"
","all"); // Remove spaces and replace   recordListHTML = REREPLACE(recordListHTML,"[\s]"," ","all");
#recordListHTML#