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: Rename attribute, update Views
Topic Summary:
Created On: 13-Feb-2008 23:40
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.
 13-Feb-2008 23:40
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

It appears my nagging memory that DOORS updated views when you rename an attribute is incorrect. I've noticed, however, that the following sequence still works:
[] insert attr in a view [] save the view [] rename the attribute [] load the view, notice its missing [] rename the attribute back to original [] load the view, notice it's back.

This leads to the following algorithm that will let you rename an attribute from NameFrom to NameTo in a module updating all the views that contain it.

[1] If NameFrom doesn't exist or NameTo does exist, don't change the module
[2] Create Temp attr NameTo in the module; its type doesn't matter.
[3] Open each view in the module. For each column that displays NameFrom, change it to display NameTo instead. Save each such view.
[4] Delete NameTo from the module.
[5] Rename NameFrom to NameTo.

This is probably easier than remembering where in which views the attribute exists, and re-insterting it after the rename.

- Louie

The above algorithm won't find AttrDXL, LayoutDXL, or any other DXL that presumes the existence of the old NameFrom.
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.