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: Find module path from unique ID
Topic Summary:
Created On: 20-Jul-2005 20:35
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.
 20-Jul-2005 20:35
User is offline View Users Profile Print this message


Michael Venos

Posts: 20
Joined: 26-May-2004

Is there a way to find the module name and path based only on a uniqueID? So if I have a uniqueID of 000006c3 it will tell me where it is and what it's called?
Report this to a Moderator Report this to a Moderator
 20-Jul-2005 22:14
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I've never done it but there's an "Item itemFromID(string uniqueID)" command. If the return Item is not null then you can get the "path" of the item.

May look like this:
string UniqueID = "0000006c3"
Item itm = itemFromID(UniqueID)
string Path
if (null itm)
Path = "Does not exist"
else Path = path(itm)

print "Path of " UniqueID "\t= " Path "\n"

The number of leading zero's is relevant, but I don't recall how.

- Louie
Report this to a Moderator Report this to a Moderator
 21-Jul-2005 02:57
User is offline View Users Profile Print this message


cliff Bly

Posts: 58
Joined: 11-Apr-2003

Yes -- Louie is right. Plus you can get the name, type and path

string mName = fullName(itm)
or .. rootName_(itm)
string iType = type(item1)
if ( (iType == "Formal") ..etc

I store uniqueIDs as some managers have moved modules to other folders and then they are hard to find. (the modules not the managers)

-------------------------
Cliff Bly
Report this to a Moderator Report this to a Moderator
 26-Jul-2005 13:08
User is offline View Users Profile Print this message


Michael Venos

Posts: 20
Joined: 26-May-2004

Excellent! Exactly what I needed. Thanks to both of you!
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.