TJ

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.

 

File attachments
by Ariene Kroeze
Posted on Wed, 12/23/2015 - 09:39

Hi Tari,

 

I think your first bullet has still the style of the header before your list.

I am not sure, but give it a try, write a space or something like that after your header in the style you use for your list.

I hope it works,

regards, Ariene Kroeze

 

0
by Tari Jaber Author
Posted on Fri, 12/25/2015 - 12:17

You suggestion works. Thanks a lot Ariene.

0

Featured achievement

Question Solver
Share your expertise and have your answer accepted as best reply.
Recent Unlocks
  • BZ
  • Profile picture for user TEF_Bernd
  • ПЦ
  • CR
  • BH
  • PacMan

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock