09-10-2008 03:29 AM
I am able to print requirement which has "NTR" attribute using the following conditon
$SOME(req5.attributes[typeName = "NTR"])
But for the each requirement i would like to check whether the particular attribute is available.
if it is available i have to print "X" otherwise i have to leave it as blank.
Is it possible to print "X" if the particular attribute is available?.
For Example :
"REQ_1" has attribute "NTR"
"REQ_2" does have attribute "NTR"
"REQ_3" has attribute "NTR"
I would like to have a report something like this. How to do this?
--------------------
ReqID - NTR
--------------------
REQ_1 X
REQ_2
REQ_3 X
---------------------
Your immediate help is appreciated.
09-11-2008 02:49 PM - edited 09-11-2008 02:49 PM
Kals, here is what you want.
The key is to always loop over the Requirements, but to have the X show up only if an attribute of the type name exists.