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: DataReport
Topic Summary: Create a report includes all projects, modules, links with count number of "shalls" in the module.
Created On: 18-Jul-2005 22:53
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.
 18-Jul-2005 22:53
User is offline View Users Profile Print this message


Stacey Glass

Posts: 4
Joined: 23-May-2005

I need to create a report includes all projects, modules, links ... and count number of "shalls" in the module when Item is Formal.

This script works when I have 2 separate scripts: one to report items in the directory and one to count # of shalls.  When I combine them together, the script didn't work.

If someone could help I would greatly appreciate.

Report this to a Moderator Report this to a Moderator
 19-Jul-2005 12:54
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

The attached is a template I have posted before.
This loop through database, project or folder and has a separate function call for each item type encountered.

Modify this so it calls the following function from the processFormal function.
This should give you what you want.

listDbItems.dxl
listDbItems.dxl  (2 KB)



-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 19-Jul-2005 18:19
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

You seem to be forgetting to open the module and are missing an object loop when you figure out your item type is Formal. I bet you get some sort of null parameter error when you use variable "o". Consider this loop:

for obj in entire mod do
{ if (isDeleted(obj)) continue
// count the Shalls.
// Count the number of objects with at least one shall
}
Report this to a Moderator Report this to a Moderator
 22-Jul-2005 13:57
User is offline View Users Profile Print this message


Stacey Glass

Posts: 4
Joined: 23-May-2005

Yes, you're definately correct! I've added the loop, now I got these error:

-R-E- DXL: <Line:74> null Module do loop parameter was passed
-I- DXL: execution halted

at "for obj in m do { "
any idea what the error meant?

this is what I have when I try to figure out the item type Formal :

else if (type itemRef == "Formal") {
     mod1++
    /*************************************************
     count number of "shall" in the formal module     
    **************************************************/

      for obj in m do {
         if (isDeleted(obj)) continue {
           
            numShalls = 0
            s = obj."Object Text" ""

            while (s != "" && hasShall s) {
              numShalls++
              s = s[end 1:]
            }
      
            file << "          " name itemRef ",, formal,,,, numShalls \n"           
         }
      }
      /*************************************************
         End count number of "shall" in the formal module    
      **************************************************/
      file << "          " name itemRef ",, formal,, numShalls \n"
 }

.

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.