dataArray = Arraynew(1); allowWordWrap = false; UID = ""; RecordName = ""; //DataSheetIDField = "threadid"; ElementName = "Forum Threads"; ElementIDField = "threadid"; ElementNameField = "threadName"; // Get UniqueID //UID = TRIM(request.DataSheetRow[DataSheetIDField][Request.DataSheetRow.CurrentRow]); UID = TRIM(request.datasheet.currentColumnValue); // Get Element Data dataArray = application.ptForum.ceData.getCEData(ElementName, ElementIDField, UID); if ( ArrayLen(dataArray) ) { if ( LEN(TRIM(dataArray[1].Values[ElementNameField])) ) { RecordName = dataArray[1].Values[ElementNameField]; } else { RecordName = ""; } if ( allowWordWrap IS false ) RecordName = REREPLACE(RecordName,"[\s]"," ","all"); } #RecordName#