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 Explorer in Treeview
Topic Summary:
Created On: 17-Aug-2005 17:10
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 Richard Good, on Wednesday, August 17, 2005 8:36 PM

Answer:

Got over my acute attack of laziness. I think the attachment does the job. Must go home now and pretend I wasn't here until 9pm wresteling with this silly little problem!

 17-Aug-2005 17:10
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

I have a need to basically mimic the "module explorer" window inside a treeview dialog element. This strikes me as somthing that many people will have done before. I think it can most easily be achieved by editing the "dbtree.inc" file that lives in the dxl library that comes with DOORS.

Is there anyone out there who has done this previously and is willing to share!

Cheers for any help
 
Richard Good

-------------------------
Regards,

Richard Good
Report this to a Moderator Report this to a Moderator
 17-Aug-2005 17:42
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

I just finished doing some stuff with such a thing. I was actually modifying an earlier script written by someone else, which used a list view and was pretty messy. I went the dbtree.inc route, although I didn't modify it at all. Basically you create a tree view, set() it to have an expand function that calls fillTreeSimple2 (from dbtree.inc), and (optionally) another set() command to have something happen when an item is selected/activated (clicked or double-clicked).

See some example code attached. It will give you a tree view listing formal modules and expanding as expected. See the Copy Objects script in the standard library for an example (I got the ideas from one of our scripts that's based on it).

The other way is to use the Mini Explorer, which pops up a separate window--you'd use a text box and a browse button (see this topic, or this one, for more about it).

There are scripts included with DOORS that use either way and several topics here on the forum, so you can pick the one you want and find some examples.

Chris
Report this to a Moderator Report this to a Moderator
 17-Aug-2005 18:16
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

Chris,

Thanks for the reply, but I am trying to display all the objects in a module not the folders/ formal modules in a database. I was hoping there was some miniexplorer variant for doing this, but I can't find one, nor do I think there's a way to do it using undocumented functions. It does look possible to do what I want by doing a variant of the "dbtree.inc" code. I was just wandering if one of the dxl experts who wander this forum had a script already. I have not used a tree view before so am not even positive what I propose is possible, so I thought I'd stick up a query wait a couple of days then have a deeper look if neccessary.  

Cheers

Richard

-------------------------
Regards,

Richard Good
Report this to a Moderator Report this to a Moderator
 17-Aug-2005 19:55
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

Ohhhhhhhhhhhhh.....the *module* explorer..... I guess that's a different story. (Does anybody else confuse the Module Explorer with a database explorer like I described?)

I'm definitely not one of those DXL experts you mentioned, but off hand I'd say that there probably isn't a simple way to do that, unless you could figure out how DOORS itself does it (and that code is probably encrypted). I should think it's possible with some doing though.

Chris
Report this to a Moderator Report this to a Moderator
 17-Aug-2005 20:35
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

Answer Answer

Got over my acute attack of laziness. I think the attachment does the job. Must go home now and pretend I wasn't here until 9pm wresteling with this silly little problem!



-------------------------
Regards,

Richard Good
Report this to a Moderator Report this to a Moderator
 18-Aug-2005 15:46
User is offline View Users Profile Print this message


cliff Bly

Posts: 58
Joined: 11-Apr-2003

Looks good to me. I have a couple of variants of this as well.
1. The root of the tree is the module name.
2. In the skip list, I use the path string as the key and the object as the data
ie Skip ObjectSkipText = createString
The I put the path as follows
put(ObjectSkipText,path,Object o)

This way when a user selects the path in the tree view, the get command is used to obtain the path. From the path I can obtain the object.

-------------------------
Cliff Bly
Report this to a Moderator Report this to a Moderator
 18-Aug-2005 17:02
User is offline View Users Profile Print this message


Richard Good

Posts: 152
Joined: 22-Mar-2005

Might as well post my "sort of" finished effort. It works in the same sort of way as the miniexplorer. Its slightly annoying in that I have to use a global variable to return the chosen object, as there seems no way to return it from a dialog box firing routine (I'm possibly missing somthing here). Please suggest a method if there is one.

-------------------------
Regards,

Richard Good
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.