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: child object text as attribute
Topic Summary: child object text as attribute
Created On: 22-Aug-2006 10:44
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.
 22-Aug-2006 10:44
User is offline View Users Profile Print this message


martin allman

Posts: 74
Joined: 25-Jul-2005

My module contains a number of level 2 headings, each level two object has  has a number of children, one of
these carries the heading 'PreCondition'.  The precondition object has a child object that carries text.
 I want to show that  precondition text as a attribute of the associated level 2 heading.  And most importantly
If the description text changes I want the attribute to automatically update.  I tried doing this as layout DXL,
it appears to work but only if I display all levels in my  view,  In reality I only want to my view to display the level 2
headings and the associated description layout dxl
layout dxl see code below

 

 My view is filtered on the main level two headings.

1.1 Some level 2 heading
1.1.1 Bla
1.1.2 Bla
1.1.3 PreCondition
1.1.3.1 Some text associated with the precondition, this text can change

1.2 As before etc etc

 


 My view is filtered on the main level two headings. 

 

Object childobj
Object curObj


for childobj  in obj do
{
  string hold = probeAttr_(childobj,"Object Heading")
  if(hold == "Preconditions")
  {
 
 Object text = first(childobj)
 string val = probeAttr_(text, "Object Text")
 display (val "")
 

  }

 


}

Report this to a Moderator Report this to a Moderator
 22-Aug-2006 12:37
User is offline View Users Profile Print this message


Michael Werner

Posts: 15
Joined: 29-May-2006

try the entire(Module m) function, and detect the children Objects by the number i don't know if my attached code works, because i haven't tested it.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.