Indentation of objects in Baselines
Options
[Deleted User]
Posts: 73
Hi,
one of our report developers asked me, why the indentation attribute that describes the depth of an item with the project tree is not populated to the baseline it belongs to:
Anna
one of our report developers asked me, why the indentation attribute that describes the depth of an item with the project tree is not populated to the baseline it belongs to:
UseCase 1: Iterate over the project hierarchy --> results in the depth of the object in the tree (e.g. "3" for Heading 1.1.1)
#foreach($vDoc in $documentList)
#set ( $docNode = $documentNodeDao.getDocumentNode(5,$vDoc.document.id))
#set ( $indentCount = $docNode.getIndent())
#end
UseCase 2: Iterate over all documents within a baseline --> depth is always "1" (because all objects are obviously in the same level in the baseline)
#set( $currentBaselineDocumentIDs = $baselineDao.getDocumentIds( $tmpBaseline.getId() ) )
#foreach($baselineDocumentId in $currentBaselineDocumentIDs)
#set ( $docNode = $documentNodeDao.getDocumentNode(5,$baselineDocumentId))
#set ( $indentCount = $docNode.getIndent())
#end
Anna
0