![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
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 |
![]() |
![]()
|
![]() 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) | |
![]() |
|
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) |
|
![]() |
|
![]() |
|
PS> I'm using 6.0 SR1
|
|
![]() |
|
![]() |
|
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) |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Modify attribute name?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.