Release Notes and Announcements

Expand all | Collapse all

Velocity Reports: Determining if Folder or Component is empty

  • 1.  Velocity Reports: Determining if Folder or Component is empty

    Posted 06-05-2017 18:47
    In Velocity, is there a method on folders or components to indicate that they are empty?  I haven't been able to find anything, and the attributes of the types don't seem to indicate that there is an attribute for children or contained items.  I have not been able to get anything using document nodes to work.  Any pointers or assistance will be greatly appreciated!

    [btw, when I try to submit this, I only get Release Notes as a choice for my discussion]

    ------------------------------
    Brian Nolan
    Solute, Inc.
    San Diego CA
    ------------------------------


  • 2.  RE: Velocity Reports: Determining if Folder or Component is empty

    Posted 06-07-2017 06:27
    get the corresponding documentNode, then check the flag hasChildren.

    Reading the document node can be done with documentdao.

    http://velocity.jamasoftware.com/latest/com/jamasoftware/contour/dao/DocumentNodeDao.html#getDocumentNode(java.lang.Integer)

    ------------------------------
    Harald Hotz-Behofsits
    Frequentis AG
    ------------------------------