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: listing specific modules in a folder (in order)
Topic Summary:
Created On: 29-Sep-2008 14:16
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.
 29-Sep-2008 14:16
User is offline View Users Profile Print this message


Anurag Chukka

Posts: 13
Joined: 6-Sep-2008

hi,

i have a folder structure as follow:
Testfolder- 010project1 - module
030folder1 - module
060folder2- module
100folder - module

i have a script which writes the names (complete including path) of all modules with a specific word in their names to a text file. i am able to get it work. but the problem is the order in which the paths are writte.

i need it:
Testfolder/010project1/module
Testfolder/030folder1/module
Testfolder/060folder2/module
Testfolder/100folder/module

but it is getting written in the following order:


Testfolder/060folder2/module
Testfolder/010project1/module
Testfolder/100folder/module
Testfolder/030folder1/module

is there a simple trick out there?
Can anyone help me out with this.
Thanks
Report this to a Moderator Report this to a Moderator
 29-Sep-2008 14:27
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Item order in DOORS is usually based on Item number -- so the solution to sort the objects, can be done by putting the names in a string skip list and then printing from the skip list.

Or you can sort a string array if you prefer.

Edited: 29-Sep-2008 at 15:06 by ron lewis
Report this to a Moderator Report this to a Moderator
 29-Sep-2008 14:44
User is offline View Users Profile Print this message


Anurag Chukka

Posts: 13
Joined: 6-Sep-2008

thanks ron,

infact i was just trying to use skiplists. just came to know that the keys are automatically sorted in a skiplist.
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.