1 Reply Latest reply on Feb 15, 2009 4:28 PM by JoshDBoyle

    Attachment order

    Johannes Lehninger Level 1
      Hi,

      I've created a process which is assigned to different persons/groups.
      First there is only one attachment for the task but in one of the steps the process provides 2 attachments one is read only the other is read/write able.
      The user is able to add an attachment.

      The problem is the order of the list items att[1]..att[n] in some cases the list is ordered by the list index in other cases not.

      How is it possible to fix the order of the list, to enable the process to check if eg. there is a 3rd attachment and save this attachment to content space.

      Example
      anhang.pdf
      test.pdf
      I add an attachment named vaude.pdf
      anhang.pdf
      vaude.pdf
      test.pdf

      regards
      Johannes
        • 1. Re: Attachment order
          JoshDBoyle Level 1
          Johannes

          I may have misunderstood your intention so if I have I apologize in advance! As I understand it, you want to sort the List your attachments are stored in and keep it sorted the same way between user steps. You could do this one of two ways but both revolve around the creation of an algorithm with which to do so:

          1) Using SetValues, you can build an algorithm that sorts your List in the way you prefer - such as alphabetically.

          2) Using an Execute Script object, you could write a script that runs your List variable through a sort algorithm.

          Once again, I may have misunderstood your point. Either way, please let me know if you have any questions.

          Josh Boyle
          jboyle@cardinalsolutions.com
          Cardinal Solutions Group