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: View with one row
Topic Summary:
Created On: 14-Jan-2005 17:26
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.
Answer This question was answered by SRINIVAS GANDHAM, on Friday, March 11, 2005 5:05 PM

Answer:
Paul,

Thanks for your reply.
I guess I was not clear in my question.
There is no row available with this information. I need to create one. The row will have 3 columns:

# of tests failed (integer) followed by # of tests passed (integer) followed by total (integer).

Could you please tell me how to accomplish this?

Thanks

Babu
 14-Jan-2005 17:26
User is offline View Users Profile Print this message


SRINIVAS GANDHAM

Posts: 17
Joined: 2-Sep-2004

I am trying to create a view which will have 3 columns :
1) Number of tests failed
2) Number of tests passed
3) Total

And there will be only one row reflecting these values.
I have the values for the three columns readily available but just don't know how to create this view.
Can somebody please shed some light or send some code snippet.

Thanks

Babu
Report this to a Moderator Report this to a Moderator
 19-Jan-2005 13:51
User is offline View Users Profile Print this message


Paul Worrall

Posts: 87
Joined: 30-Sep-2003

Set up a filter that only accepts the row of interest??
Report this to a Moderator Report this to a Moderator
 19-Jan-2005 16:12
User is offline View Users Profile Print this message


SRINIVAS GANDHAM

Posts: 17
Joined: 2-Sep-2004

Answer Answer
Paul,

Thanks for your reply.
I guess I was not clear in my question.
There is no row available with this information. I need to create one. The row will have 3 columns:

# of tests failed (integer) followed by # of tests passed (integer) followed by total (integer).

Could you please tell me how to accomplish this?

Thanks

Babu
Report this to a Moderator Report this to a Moderator
 19-Jan-2005 18:47
User is offline View Users Profile Print this message


Joshua Clark

Posts: 4
Joined: 13-Jan-2005

Babu,

If you have the values stored in attributes, you could use the attached code to build the view

Josh
Report this to a Moderator Report this to a Moderator
 19-Jan-2005 19:00
User is offline View Users Profile Print this message


SRINIVAS GANDHAM

Posts: 17
Joined: 2-Sep-2004

Josh,

The values are not stored in attributes, they are in local variables.
I have declared two local counters (variables)
passCounter and failCounter.
I just traverse through the requirement list and increment the two counters.

And at the end all I am interested is in displaying the values stored in the passCounter and failCounter in the view - just one row.

Do you know how to do it?

Thanks

Babu
Report this to a Moderator Report this to a Moderator
 19-Jan-2005 19:49
User is offline View Users Profile Print this message


Joshua Clark

Posts: 4
Joined: 13-Jan-2005

Unfortunately with DOORS, in order to show a row in a view, it needs to be somehow associated with an object in the module.  For inter-object code, I would suggest displaying your results in soem other medium, like an "ack" or "infoBox", or even via a screen print.

Perhaps you could use something like this:

Object objCurrent
int intCounter = 0
for objCurrent in current Module do {
   bool blMatchesCriteria = [here's where you'd run your test]
   if (blMatchesCriteria) counter++
}
print counter
ack counter
Report this to a Moderator Report this to a Moderator
 1-Feb-2005 13:38
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

I think this is what you're looking for. Just replace the variable declarations at the top with your own and call the function makeView with a pointer to your own module.

-Dennis
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.