![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Generating a word document from DOORS requirement Topic Summary: Created On: 16-Aug-2006 01:18 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
We keep the requirements on DOORS and all other parts of a requirement document (introduction, overall architecture etc.) in a word document. We want to generate a word document from DOORS consisting of selected attributes and insert it into the requirement document as a section. The attributes we want to include are - Object Identifier, Object Heading, Object Text and "Rationale". We use the object headings to group the requirements. An object has either a Heading or text.
I created a document view with one DXL attribute concatenating the attributes. But then the formatting of the individual attributes are lost.
We are using DOORS 8.1
************** I want the out put to look like this *******
2.0 <134> General Requirements (134 is the identifier from DOORS)
<138> General requirement1 (138 is the identifier from DOORS)
Rationale : some rationale for the general requirement
************** This is what I have now *********
: <134> General Requirements
Rationale :
: <138> General requirement1
Rationale : some rationale for the general requirement
******* Here is my DXL script *****************
string NameAttr0 = identifier obj
string NameAttr1 = "Object Text"
string AttrVal1 = obj.NameAttr1
string NameAttr2 = "Rationale"
string AttrVal2 = obj.NameAttr2
string NameAttr3 = "object Heading"
string AttrVal3 = obj.NameAttr3
display NameAttr0 " " AttrVal3 " " AttrVal1 "\n" NameAttr2 " : " AttrVal2
********************************
How do I get rid of the ":" in front of the requirement identifier?
How I do I keep different formats for the different attributes that are combined? (e.g Heading 2 for the Object Heading, Italics for Rationale etc).
Thanks for your help.
|
|
![]() |
|
![]() |
|
Here is a repeat of my question with better formatting: (Sorry!)
Hi,
We keep the requirements on DOORS and all other parts of a requirement document (introduction, overall architecture etc.) in a word document. We want to generate a word document from DOORS consisting of selected attributes and insert it into the requirement document as a section. The attributes we want to include are - Object Identifier, Object Heading, Object Text and "Rationale". We use the object headings to group the requirements. An object has either a Heading or text.
I created a document view with one DXL attribute concatenating the attributes. But then the formatting of the individual attributes are lost.
We are using DOORS 8.1
************** I want the out put to look like this *******
2.0 <134> General Requirements
(134 is the identifier from DOORS)
<138> General requirement1 (138 is the identifier from DOORS)
Rationale : some rationale for the general requirement
************** This is what I have now *********
Edited: 16-Aug-2006 at 01:53 by K Ren |
|
![]() |
|
![]() |
|
Hi,
I would suggest you use a separate view with layout-DXL columns in which you combine the attributes to give the result you want. To get rid of the column title is currently only possible by patching the function wordDumpColumnValueVBA() in standard/export/word.dxl; I have introduced code which suppresses the title if it starts with '--'. Applying a specific style for attributes works also with the "Paragraph Style" attribute, but it is broken for leyout-DXL columns--see another article with a proposed patch: https://support.telelogic.com/en/doors/forums/messageview.cfm?catid=58&threadid=2458 Hope this helps, Dietmar Edited: 16-Aug-2006 at 08:14 by Dietmar Berg |
|
![]() |
|
![]() |
|
Hi Dietmar,
Thanks for your help. I did have a separate view with just one DXL attribute that combines the 4 attributes of interest (identifier, Heading, Text and Rationale). I then export this view to Word. But the individual formatting is lost when you combine. I currently don't have the word.dxl. I will download it from the Telelogic site and use the two patches you have provided. I wonder if using richText in the DXL script while combining the attributes would work. I tried a couple of things with richText but it did not help.
Thanks again.
Kaly
|
|
![]() |
|
![]() |
|
Using the patches provided by Dietmar solved the two problems I had before 1) Not printing the attribute name for every object and 2) Preserving the format for the attribute values. (Thank you Dietmar)
However I still have some other issues:
How do export without the object numbers? ( I have deselected the include Heding numbers but that does not help!)
I now get
Edited: 18-Aug-2006 at 01:12 by K Ren |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.