Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Tony Goodman, on Thursday, January 26, 2006 1:53 PM

Answer:
Here you go.
Layout DXL to show number of leaf descendents
 26-Jan-2006 12:18
User is offline View Users Profile Print this message


Robbie Longworth

Posts: 31
Joined: 23-Jun-2004

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
Report this to a Moderator Report this to a Moderator
 26-Jan-2006 12:39
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Answer Answer
Here you go.
Layout DXL to show number of leaf descendents

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 26-Jan-2006 13:54
User is offline View Users Profile Print this message


Robbie Longworth

Posts: 31
Joined: 23-Jun-2004

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.