Hi everyone,
I'm using the following code to create a list of attachments
/*Create the attachments list
** There must be an attributes pairs for each attachment such as AT_ATTACHMENT_01 and AT_ATTACHMENT_01_TITLE. the the length of the array must always be even
*/
function createAttachmentsList(p_output, p_array){
if(p_array.length == 0){
p_output.OutputLnF("Not Applicable.", getString("ID_STYLE_RD_DEFAULT"))
return
}
p_output.BeginList(Constants.BULLET_DEFAULT)
for(var xx = 0; xx<p_array.length; xx++){
for(var ali=1; ali<= MAX_ATTACHMENTS_ALLOWED; ali++){
var attachmentName = p_array[xx].Attribute(customAttributesTable["AT_ATTACHMENT_"+ali+"_TITLE"], nLocale)
if(attachmentName.IsMaintained()){
var attachmentLink = (p_array[xx].Attribute(customAttributesTable["AT_ATTACHMENT_"+ali], nLocale)).getValue()
if(attachmentLink.startsWith("file://") == 0 && attachmentLink.startsWith("http://") == 0 && attachmentLink.startsWith("ftp://") == 0)
p_output.OutputLink(attachmentName.getValue(),"file://"+attachmentLink, "Arial", 12, Constants.C_BLUE, Constants.C_WHITE, Constants.FMT_LEFT)
else
p_output.OutputLink(attachmentName.getValue(),attachmentLink, "Arial", 12, Constants.C_BLUE, Constants.C_WHITE, Constants.FMT_LEFT)
p_output.OutputLnF("", getString("ID_STYLE_RD_DEFAULT"))
}
}
p_output.EndList()
}
//return ArisData.Unique(result.concat(temp))
}
I don't understand why I'm getting the list with list bullets not equal in size. See the image attached.