8 Replies Latest reply on Oct 20, 2015 9:45 AM by csoto

    How do I create an attribute consisting of all Notes on a Request?

    csoto Specialist

      I would like to create a HTML-formatted list of all the Notes associated with a given Request, in reverse chronological order. This will be included in an email update to the client/analyst. For Example:

       

      Notes
      This is the LAST note.
      This is another Note.
      This is the SECOND note..
      This is the FIRST NOTE.

       

      I don't believe there's a way to do this using Placeholders. Rather, I expect I have to create an "After Read" Calculation that constructs this, with the formatting already in place. I did this to provide a "LatestNote" attribue previously. Here's the Calculation Formula:

      import System

      static def GetAttributeValue(Request):

          if Request.Notes.Latest() != null :

              Value = Request.Notes.Latest().Text

          return Value

       

      Do you know how I would iterate through these, or is there a non-calculation way to do this?

       

      Thanks,

      Charles