// Set the default text for no records.
var retHTML = "";
// Get the data for the link builder data
var rbDataArray = ArrayNew(1);
var i = 1;
var currText = "";
var currURL = "";
var currEditLink = "";
var currRemoveLink = "";
var editDeleteLinks = "";
var rbHeaderText = "Schedule:";
// check that we have a UUID List values
if ( ListLen(arguments.uuidList) )
{
rbDataArray = buildRecurrenceRenderData(arguments.uuidlist);
// Check that we have linkDataArray
if ( ArrayLen(rbDataArray) )
{
// Loop over the linkDataArray records
for ( i = 1; i LTE ArrayLen(rbDataArray); i = i + 1 )
{
// Build the Edit and Delete Links for each DateTime block
editDeleteLinks = "
";
editDeleteLinks = editDeleteLinks & "";
//editDeleteLinks = editDeleteLinks & " | ";
editDeleteLinks = editDeleteLinks & " | ";
editDeleteLinks = editDeleteLinks & "
";
// Build the DateTime blocks
retHTML = retHTML & "#Trim(rbDataArray[i].renderString)#" & editDeleteLinks & "
";
}
// Check if we have built data
if ( LEN(retHTML) )
{
// Prepend and Append the div block for the styles
retHTML = "" & retHTML & "
";
}
}
}
return retHTML;