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: How to output something in a Module DXL Attribute
Topic Summary:
Created On: 29-Oct-2008 16:45
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 Pekka Mäkinen, on Thursday, October 30, 2008 9:14 AM

Answer:
Probably your Revision attribute is of type String or Text, but "major" function returns an integer, thus you have to typecast the return value by concanating it with "" (empty string):

Module m = current
Baseline b = getMostRecentBaseline(m)
m.attrDXLName = major b ""

The attrDXLName seems also to work in module context.
 29-Oct-2008 16:45
User is offline View Users Profile Print this message


Mathias Burchardt

Posts: 21
Joined: 17-Sep-2008

Hello all,

using WEXP with DOORS 8.2, I would like to display only the major of my module version as a revision (e.g. current module Version is 3.0 --> revision is 3).

Doing that I thought to create a Module DXL Attribute. The code below fires an "Attribute DXL Failed", when I check the attribute in the module properties.
Anybody, who can help?
Maybe a better solution than an attribute DXL, like something in the .dot file, that deletes the last two characters of the string <<version>>?

Thank you in advance.

Best Regards
Mathias Burchardt
BeOne Hamburg GmbH
Report this to a Moderator Report this to a Moderator
 30-Oct-2008 06:13
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Answer Answer
Probably your Revision attribute is of type String or Text, but "major" function returns an integer, thus you have to typecast the return value by concanating it with "" (empty string):

Module m = current
Baseline b = getMostRecentBaseline(m)
m.attrDXLName = major b ""

The attrDXLName seems also to work in module context.

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/

Edited: 30-Oct-2008 at 06:14 by Pekka Mäkinen
Report this to a Moderator Report this to a Moderator
 30-Oct-2008 08:25
User is offline View Users Profile Print this message


Marcel van der Laan

Posts: 15
Joined: 21-Sep-2007

Mathias,

You could do something in Word, if you wanted to. For example, you could add a Formula field such as

{ = INT( <<version>> ) }

Except that this won't work if you use suffixes to your baseline versions, since this is included in the WEXP <<version>> 'pseudo module attribute', so you would need to add some VBA stuff to your document. But if you don't, then you can...

Easiest would probably be to use Pekka's method in DOORS.


Cheers,
Marcel
--
Marcel van der Laan
ICT Embedded (www.ict.nl)
Report this to a Moderator Report this to a Moderator
 30-Oct-2008 09:15
User is offline View Users Profile Print this message


Mathias Burchardt

Posts: 21
Joined: 17-Sep-2008

That's geat, Pekka. Many thanks.
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.