3 Replies Latest reply on Nov 15, 2007 12:02 PM by mimamura

    Trouble getting attachment extended properties

      Hopefully this is a simple question.

       

      We've been storing a number of extended properties on attachments, which works fine (we can see the values appear in the database), except that we're having problems retrieving the properties; namely, getProperties() on the attachment objects seems to be returning null from within FreeMarker.

       

      Example:

      <#assign doc = jiveContext.documentManager.getDocument(1310) />
      <div>${doc.properties}</div>
      <#list doc.attachments as att>
          <div>${att.properties}</div>
      </#list>

       

      The "doc.properties" works like I expect, but "att.properties" throws a FreeMarker error: "freemarker.core.InvalidReferenceException: Expression att.properties is undefined"

       

      Should this work?  I was under the impression that getProperties() would never return null.  Thanks!