![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: View with one row Topic Summary: Created On: 14-Jan-2005 17:26 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() 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 | |
![]() |
|
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 |
|
![]() |
|
![]() |
|
Set up a filter that only accepts the row of interest??
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Babu,
If you have the values stored in attributes, you could use the attached code to build the view Josh |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
View with one row
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.