![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Changing module name thru DXL Topic Summary: Created On: 6-Feb-2004 15:03 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() Answer: Thanks guys! - Stian | |
![]() |
|
Is it possible to change a module's name from DXL?
In the GUI, it seems that a module's name can only be changed from a CLOSED module's properties dialog opened by right-clicking on the module entry in the main window/browser. From DXL however, any modification of module attributes requires the module to be opened in an edit mode, after which it seems I have no access to modify its name - just like in the GUI? So - is there a way to modify the name from DXL without having to "edit(mod)" first? - Stian ---------------------------- Computas AS, Norway |
|
![]() |
|
![]() |
|
From the DXL manual (version 6.0)
Declaration string rename({Item i|Folder f|Project p|ModName_ modRef}, string name, string description) bool rename(ModName_ modRef) Operation Renames the item specified by the first argument to name and associates it with description. The name argument must be an unqualified name. If the user does not have modify access to the item, the call fails. The first form returns a null string on success; otherwise, an error message. The second form is retained for compatibility with earlier releases. It returns true on success; otherwise, false. Example rename(folder "my folder", "public", "for review") hope this helps ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Yes, the module needs to be open. But you can get at it with DXL using the "ModName_" type, implicit in the "module(Name)" commands. (Whereas you can get at the open "Module" handle with "module(itm)"; so long as "itm" is not null.
Attached code should work. -Louie |
|
![]() |
|
![]() |
|
Thanks guys!
- Stian |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Changing module name thru DXL
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.