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: how to get the baseline module property values
Topic Summary:
Created On: 27-Aug-2003 21:25
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.
 27-Aug-2003 21:25
User is offline View Users Profile Print this message


Ananda Badugu

Posts: 20
Joined: 3-Feb-2003

Hi

I have DXL script called Inventory that will gives the all properties of the module under the project, like the following

Created date:
Created By:
Module Name:
Module Description:
Version:

Some modules have Baselines, I want to get the baseline info which are, baseline creation date, who created base line and baseline version. I want to add the baseline info the DXL . could any one help me to get the baseline attribute values.


This is the script

int tDate = intOf today
string modName
string real1,real2,real3,real4,real5,real6,real7
Module modref
string attributeName
Module m = current ()
string createdOn = "Created on"
int numOpen = 0
Project pRef=current ()
string projectName = name(pRef)
bool found = true
string vsion
void attr ()
{
for modName in pRef do
{
numOpen = numOpen + 1
Module s = read(modName, true)
string attr = "Created on"
vsion = version (Module s)
Date created = s.attr
string Mversion = vsion
string Desc = "Description"
string creatby = "Created By"
string MDescription = s.Desc
string cby = s.creatby
real1 = "Work Product ID : "modName" "
real5 = "Document Description : "MDescription " "
real2 = "CM Control Date : "created " "
real3 = "Created By : "cby " "
real4 = "Version : "Mversion " "
real6 = "-------------------------------------------"
print real1 "\n"
print real5 "\n"
print real2 "\n"
print real3 "\n"
print real4 "\n"
print real6 "\n"
close (Module s)
}
}
real7 = "Doors Inventory for " projectName
print real7 "\n"
attr
//close (file)





Thanks
Ananda
Report this to a Moderator Report this to a Moderator
 28-Aug-2003 13:59
User is offline View Users Profile Print this message


Jobina Johnson

Posts: 55
Joined: 12-Sep-2002

Here is a script that may help

//The script will print the name of the module and the current version name
//Return the baseline history for the module. Must be runned from a formal module

Module m= current
Baseline b
Date d = m."Last Modified On"
print "The Module name is " m."Name" """\n"
print "Current Version: "(version current Module) "\n"
print "Last Modified On: " d "\n"


//This section will give every baseline date for the module
for b in m do {
print (major b) "." (minor b) (suffix b) " \t" //prints the two digit number and the suffix
print "Baseline Date: " (dateOf b) "\t" //prints the date of the baseline
print " Created By: " (user b) "\n" // prints the user who created baseline
}

JJ

-------------------------


jobina.l.johnson@boeing.com

Edited: 28-Aug-2003 at 14:08 by Jobina Johnson
Report this to a Moderator Report this to a Moderator
 29-Dec-2003 17:30
User is offline View Users Profile Print this message


Srinivas Dasari

Posts: 24
Joined: 13-Dec-2003

hi,

I am doing something similar but using itemRef capabilities to scan thru my projects. I am able to print module names in my project and maybe can add attributes in my print option but how can i get the baseline info in this script.

I can get the baseline info individually from a module but this info is needed for all the mods in the project. Is there a way the getMostRecentBaseline(m) function take the module handle referenced by itemRef or can itemRef get a handle of the module whose name is being printed and reference that in getMostRecentBaseline(m) function
Report this to a Moderator Report this to a Moderator
 5-Jan-2004 15:09
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You need to open the module:
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.