![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Module Explorer in Treeview Topic Summary: Created On: 17-Aug-2005 17:10 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() 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! | |
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Module Explorer in Treeview
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.