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: Changing module name thru DXL
Topic Summary:
Created On: 6-Feb-2004 15:03
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 Stian Aase, on Saturday, February 7, 2004 12:57 PM

Answer:
Thanks guys!

- Stian
 6-Feb-2004 15:03
User is offline View Users Profile Print this message


Stian Aase

Posts: 11
Joined: 13-Nov-2003

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
Report this to a Moderator Report this to a Moderator
 6-Feb-2004 15:42
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 6-Feb-2004 19:07
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

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
Report this to a Moderator Report this to a Moderator
 7-Feb-2004 12:57
User is offline View Users Profile Print this message


Stian Aase

Posts: 11
Joined: 13-Nov-2003

Answer Answer
Thanks guys!

- Stian
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.