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: Modify attribute name?
Topic Summary: How do I change the name of an attribute?
Created On: 26-Jan-2006 16:06
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 Paul Worrall, on Monday, January 30, 2006 3:30 PM

Answer:
Is it an Attribute, or an Attribute Type that you want to rename? If the former then:

AttrDef ad = find(current Module, "Classification")
modify (ad, setName, "newClassification")

If the latter then:

AttrType at = find(current Module, "Classification")
string errMsg
modify (at, "newClassification", errMsg)
 26-Jan-2006 16:06
User is offline View Users Profile Print this message


Al Lione

Posts: 59
Joined: 13-Jul-2004

I have an attribute called "Classification". I want to change it's name to "new Classification".
I am trying to use a dxl script to do this.

AttrType at = find (current Module, "Classification") // this works
print at.name // this works, just to check
modify (at, setName, "new Classification") // error: incorrect arguments for function (modify)
Report this to a Moderator Report this to a Moderator
 26-Jan-2006 16:09
User is offline View Users Profile Print this message


Al Lione

Posts: 59
Joined: 13-Jul-2004

PS> I'm using 6.0 SR1
Report this to a Moderator Report this to a Moderator
 27-Jan-2006 08:44
User is offline View Users Profile Print this message


Paul Worrall

Posts: 87
Joined: 30-Sep-2003

Answer Answer
Is it an Attribute, or an Attribute Type that you want to rename? If the former then:

AttrDef ad = find(current Module, "Classification")
modify (ad, setName, "newClassification")

If the latter then:

AttrType at = find(current Module, "Classification")
string errMsg
modify (at, "newClassification", errMsg)
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.