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: Module URL
Topic Summary:
Created On: 30-Jul-2007 19:13
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.
 30-Jul-2007 19:13
User is offline View Users Profile Print this message


Brian Rohler

Posts: 26
Joined: 20-Jun-2007

Every module has a unique ID, which consists of the database ID concatenated with the module ID. I have some DXL attributes in which I would like to use those values rather than hard coding in the path name of the module used in the attribute.

So my question is how do you read the database ID and the module ID?



Edited: 30-Jul-2007 at 19:14 by Brian Rohler
Report this to a Moderator Report this to a Moderator
 30-Jul-2007 19:38
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

Probably you'll want to look in the DXL manual under:
uniqueID
qualifiedUniqueID

Feed either an Item, Folder, Project, or ModName_; get a string back. I don't know for certain but the second one might be what you're after (without having to concatenate anything manually).
Report this to a Moderator Report this to a Moderator
 30-Jul-2007 22:23
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You probably need this before using Chris' code:
ModName_ mn = module(fullName(current Module))

uniqueID can be used to find where the module is housed in the database folder structure (using Windows Explorer at the server). Prefix the uniqueID with "m" and suffix with ".mod"; e.g. if the ID is '00000140' then its housed in a folder named "m00000140.mod". Run the following from an open module:
string ModID = uniqueID(current Module)
print ModID "\tFound in windows explorer folder: m" ModID ".mod\n"

QualifiedUniqueID doesn't seem to be worth anything.

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