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: Showing correct Object Number in DOORS
Topic Summary: Absolute number going where Object Number should be
Created On: 18-Dec-2007 10:20
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.
 18-Dec-2007 10:20
User is offline View Users Profile Print this message


Christopher Dunn

Posts: 3
Joined: 6-Sep-2007

Hello,

I'm writing a DXL script to build a DOORS module from some legacy XML requirement spec documents. I've been told to preserve the original requirement identifier and heading numbers as other documents refer to the requirements by those numbers only.

At the moment I can succesfuly import the entire document and populate the module and its attributes, including the heading numbers.

However, all I see is the Absolute Number and Object Text/Heading Text. What I want to see is something exactly like the entertainment system example in the Car Demo project. I tried to store the heading number from the XML in to the DOORS attribute 'Object Number'. When I view the object using properties->attributes, the correct figure is replaced with 0-x, where x is that object's Absolute Number (so the 74th object appears as 0-74).

I know that the data is being read in correctly because the number I want to see appears in the object history.

I have write access to the attribute, and I'm confused as to why the absolute number is appearing here.

Any suggestions to fix or work around this would be highly appreciated. I do not even need a DXL solution - if there is a way I can display the numbers from a menu command, that meets my requirement specification.

Otherwise, I hope you all have a Merry Christmas.

Cheers,

Christopher
Report this to a Moderator Report this to a Moderator
 18-Dec-2007 10:38
User is offline View Users Profile Print this message


Christopher Dunn

Posts: 3
Joined: 6-Sep-2007

Further experimentation has revealed that if I save the object text as object heading instead, DOORS is automatically putting in object numbers for me - just the wrong ones.

If I can somehow disable or over-ride DOORS auto numbering, that will work too. The legacy xml has identifiers for the individual requirements, not just the headings. I really need to be able to show numbers for all objects, not just the headings.
Report this to a Moderator Report this to a Moderator
 18-Dec-2007 10:45
User is offline View Users Profile Print this message


Peter Albert

Posts: 232
Joined: 30-Dec-2005

Hi Christopher,

Object Number: The (Pseudo-) Attribute "Object Number" is no attribute, it displays the result of the "string number(Object o)" DXL perm. You can't write to this "attribute", its value is purely a function of the position of the object in the module hierarchy. As your "Object Number"s all begin with "0-", this means that you imported the XML file as a flat structure. This also indicates that where you _thought_ you imported the heading numbers correctly, you actually just put them into the Object's "Object Text". Otherwise their "Object Number" would start with a number > 0.

As the heading numbers are calculated by DOORS automatically, there is no other way for you as to correctly mimic the original XML file's hierarchy in DOORS. If you want to do this manually, you have to

- Move the Heading titles from "Object Text" to "Object Heading" in their respective Objects; and
- Move the Heading objects into their correct position; with DOORS 8.2 you can use the denote button in the menu bar, with earlier versions you have to use the "Move object below" or "Move object after" context menu entries.

This quickly becomes tedious, so you might want to use DXL, if I remember correctly, there was a post just recently in this forum on the topic of creating a hierarchy based on imported heading numbers.

Views: If you want to see more than the Absolute Number and Object Text / Heading, you should try to get familiar with Views. You basically select which attributes (or layout DXL) you want to show in the individual columns using the "Insert Column" / "Delete Column" buttons. Once you are done, you should save the view, otherwise your selection is lost when you re-open the module.

As this is all quite basic stuff, I'd strongly suggest that you do yourself a treat and attend a Telelogic DOORS course.

Regards,

Peter


Edit: Your second post came while I was writing this one, so here is some update

No, you can't disable auto-numbering. The numbers shown are not the wrong ones, in fact, they are the correct ones, they are just not the ones you want to see ...

For the individual requirements, you can't force them to get a certain Absolute Number, I'd suggest to create a new attribute "Requirements ID" into which you put the required number from the XML file

Edited: 18-Dec-2007 at 10:49 by Peter Albert
Report this to a Moderator Report this to a Moderator
 18-Dec-2007 21:57
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

Peter hit it right on the head about object numbering and all that. That is one area that can be confusing until you get used to it (we just did some internal training today and that was one thing that people had trouble with).

About creating the hierarchy properly: I would recommend the excellent "Build Hierarchy" script from Michael Sutherland, http://galactic-solutions.com/GalacticDownloads.htm.
I've used it to build document structure after importing from an Excel sheet that had hierarchy numbers. You may have to massage a few things to get the script to work.

Of course, the numbering in the original document has to in the same format that DOORS uses...

Merry Christmas to you too!

Chris
Report this to a Moderator Report this to a Moderator
 4-Jan-2008 07:09
User is offline View Users Profile Print this message


Christopher Dunn

Posts: 3
Joined: 6-Sep-2007

Thank you for the detailed and highly informative help and workarounds. Also, I e-mailed the local DOORS sales team to find out about a Telelogic DOORS course as suggested. Maybe in future I can be posting helpful responses here, too.

I hope you have a great New Year!
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.