![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: determine module vs folder vs project Topic Summary: Need to determine if current item is a formal module Created On: 15-Jun-2006 14:10 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
|
|
![]() |
|
![]() |
|
Not sure why my previous post was blank, but basically here is my problem:
I use "for item in current Project do" to get the name of every item within the heirarchy of the current project. It lists everything, including modules, folders, projects ,etc... I need to know if the current item is a formal module. How can I make this determination with dxl? Thanks!
|
|
![]() |
|
![]() |
|
Hi Al,
you may use : string type(Item) Greetings Reik Schröder ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
Here is an example, Al.
Note that the test for Project is done before the test for Folder because a Project IS also a Folder. Other types not in the example are "Link" and "Descriptive". You should also protect your code from null and deleted items by including the following at the beginning of the loop: if (null itm || isDeleted(itm)) continue ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
|
![]() |
|
Hi Tony,
how can a Project be a Folder, when you are using the string type (Item) function? It will return a string which can be either Project or Folder?! BTW: The differences between Folder and Project are: 1) Projects have to use an unique name within one DB 2) you can access items within a project with project relative pathes, but on folders you can't do so Greetings Reik Schröder ------------------------- Evosoft GmbH for Siemens Industry Sector Berlin, Germany |
|
![]() |
|
![]() |
|
The "type" of a project is "Project" and not "Folder". But a project will return non-null values for both the following:
Folder fld = folder(NameProject) Project prj = project(NameProject) 3) Projects can be archived. Of course you can archive a folder by changing it to a project, archiving it, then changing it back to a folder. |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
determine module vs folder vs project
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.