![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Attribute DXL to count all children under a heading? Topic Summary: Created On: 26-Jan-2006 12:18 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Here you go. Layout DXL to show number of leaf descendents | |
![]() |
|
Hi,
I'm trying to develop some code that is probably best suited for Layout DXL. I'm after adding a column who's output contains the total number of "leaf" objects below a certain heading. I thought this would be possible in filtering but if I filter on a heading and "show descendents", and object=leaf then it says it's only showing one object! This is an example of what the numbers should be (Numbers in brackets would be in the Layout DXL): 1. Heading (** 9 **) 1.1 Sub-Heading (** 2 **) This is a requirement (leaf) This is also a requirement (leaf) 1.2 Sub-Heading (** 7 **) 1.2.1Sub-Sub-Headin (** 4 **) This is a requirement (leaf) This is also a requirement (leaf) This is also a requirement (leaf) This is also a requirement (leaf) 1.2.2 (** 3 **) This is a requirement (leaf) This is also a requirement (leaf) This is also a requirement (leaf) Is this going to be hugely complicated? I can't find a isBelow or similar type function, although there is a leaf() function. If anyone has used something similar or if there's anything in the kitchen scripts (couldn't find anything) it would be appreciated! Cheers, Robbie Longworth Ultra Electronics Datel |
|
![]() |
|
![]() |
|
Here you go.
Layout DXL to show number of leaf descendents ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Excellent!
Many thanks for this, didn't know you could do for object in object! Cheers, Robbie Longworth Ultra Electronics Datel Edited: 26-Jan-2006 at 17:30 by Robbie Longworth |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.