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