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 properties
Topic Summary:
Created On: 14-Feb-2007 20:00
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.
 14-Feb-2007 20:00
User is offline View Users Profile Print this message


Rakesh Bantu

Posts: 10
Joined: 16-Mar-2006

I am new to DXL -
 
I have a attribute called Build defined at the module level.

How can list the full name of all the modules in a project for which the build attribute is set to say 1.0.
I will like the function to take the Build Attribute as a parameter so that when i run this funtion it ask me for the Build Attribute and get me the results so that i can find out at any given point which modules belong to which build.

Is this possible thru dxl. Any help is appreciated


Report this to a Moderator Report this to a Moderator
 15-Feb-2007 06:03
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

I have a preference for instead of all modules in a project ..err.. more specifically in the current project, just about all my scripts deal with modules in the current folder and below. This lets you have perhaps a 'requirements' folder sibling to a 'testing' folder; modules in one are fundamentally different than modules in the other.

Finding modules in a project is a bit awkward and non-intuitive when read in the DXL manual. You need to deal with Items. You'll need a function like the one attached.

Given that function you'll have all the names of modules. Then you can open each module, extract the Build, and go from there:
mod = read(NameFull, false)
if (null mod) log cannot open module error
Build = mod."Build"
close(mod)

- Louie
Report this to a Moderator Report this to a Moderator
 15-Feb-2007 14:03
User is offline View Users Profile Print this message


Rakesh Bantu

Posts: 10
Joined: 16-Mar-2006

Hi Louie -

Thanks a lot for the Module name retrival function. This is my second day going thru the dxl manual.

Hope you can answer the second part of the question - is it possible to display a GUI window or a pop up window that request the build id to run the script againt.

Rakesh 
Report this to a Moderator Report this to a Moderator
 15-Feb-2007 14:32
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Just create a dialog box with a list.  In the list put the module names that meet the condition you want.  Or put a field in the dialog box that lets you enter the build number you wish and then have it populate the list.

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com

Edited: 15-Feb-2007 at 14:33 by David Pechacek
Report this to a Moderator Report this to a Moderator
 15-Mar-2007 15:23
User is offline View Users Profile Print this message


Rakesh Bantu

Posts: 10
Joined: 16-Mar-2006

Hi Louie - thanks for the script.

This script is printing all the module names and the full path of the module.is there a way to print the a module attribute "prefix" for all the modules along with the module name and path.

Module Name          Module Path        prefix(value)


Thanks,
Rakesh

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.