![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Display Folders in the Doors Database ? Topic Summary: Created On: 4-Nov-2003 15:35 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I have just started programming in DXL. This may be a very simple question to many of you. Does anybody know how to list folders in the Doors Database ?
Your help and time are appreciated ! thanks Srikanth Bloomington, USA. |
|
![]() |
|
![]() |
|
Attached code should do it. Select a folder and it prints that folder and all folders and projects found under it. For the entire DB, select the "DOORS Database" root folder.
- Louie |
|
![]() |
|
![]() |
|
Here is a modified version of the Louie's code that lists all Modules, Project, and Folders in a database. You wouldn't think that would be very hard but you do have to use recursion to get there (using the least amount of code).
--------------------------------------------- void List_Modules_Projects_Folders(string ptNameFoldFull, string ptType) { // Print the name of the current folder and all folders found under it string tNameItem string tType Item iItem Folder fFolder = folder(ptNameFoldFull) if (null fFolder) { print "Return - not a folder?\n" return // not a folder? } if (ptType == "Folder") { print ptNameFoldFull " (Folder)\n" } else if (ptType == "Project") { print ptNameFoldFull " (Project)\n" } else { print ptNameFoldFull " (Unknown)\n" } // for each item in the folder (but no sub-folders): for iItem in fFolder do { tNameItem = fullName(iItem) tType = type(iItem) if (tType != "Folder" and tType != "Project") { print tNameItem " (" tType ")\n" continue // this is not a folder } //NameItem = fullName(itm) List_Modules_Projects_Folders(tNameItem, tType) // *** Recursion } // end for items in folder } // end PrintFoldersInFolder() List_Modules_Projects_Folders("/","?") |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Display Folders in the Doors Database ?
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.