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 change the default value of a module attribute
Topic Summary:
Created On: 1-Oct-2008 09:59
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.
 1-Oct-2008 09:59
User is offline View Users Profile Print this message


Mathias Burchardt

Posts: 21
Joined: 17-Sep-2008

Hello all,

I would like to change the default value of an attribute using DXL.
The reason is, that I have multiple modules with the same attribte.
The defval property doesn't seem to allow assignment of a string value.

Also helpful would be a function that changes the actual value of a module attribute (if default values cannot be changed by DXL)

Thanks a lot in advance.

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


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

Look at the "modify" function for setting attribute default values. Otherwise module attributes are the just the same as object attributes, you just access them through a module variable:

Module m = current
string ModulePrefix = m."Prefix"

-------------------------
Pekka.Makinen@softqa.fi
SoftQA Oy -http://www.softqa.fi/
Report this to a Moderator Report this to a Moderator
 1-Oct-2008 13:54
User is offline View Users Profile Print this message


Mathias Burchardt

Posts: 21
Joined: 17-Sep-2008

Thanks so much, Pekka, for the quick and helpful reply. It works perfectly.
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.