Support

 View Only

Accessing container of a child of a parent using documentNodeDao (Velocity File)

  • 1.  Accessing container of a child of a parent using documentNodeDao (Velocity File)

    Posted 12-04-2023 05:04

    Dear All,

    A small help is needed, I have a parent A where it has 3 childs B,C, and D. The following code below allows me to access the information of container B and information of parent A, how can I modify my code in a way to access information inside container C or D.

    Best Regards,

    Mohamed Smaili

    ##Get information from Intended User container
    #set( $docNode1 = $documentNodeDao.getDocumentNode(5, $documentList[0].document.id) )
    #set( $Intended_Doc = $docDao.getDocument($docNode1.refId) )
    #set( $ParentAssessmentNode = $docNode1.getParentNode() )
    #set( $containerDoc1 = $Intended_Doc )
    #set( $docAuthor1 = $velocityReportUtil.getValueForField( $containerDoc1, "author", $dateFormat ))
    #set( $docStatus1 = $velocityReportUtil.getValueForField( $containerDoc1, "document_status2", $dateFormat ))
    #set( $docNumber1 = $velocityReportUtil.getValueForField( $containerDoc1, "document_id", $dateFormat ))



    ------------------------------
    Mohamed Smaili
    Clever Circuits
    ------------------------------