09-10-2008 02:40 AM
1) I am able to display requirements with "Result" attribute and value is "FAIL" using the attributes condition
(attr2.typeName = "Result" AND attr2.ident = "FAIL")
2) also able to count using code OTscript STR($CNT(doc5.requirements.attributes[ident = "FAIL"]))
3) I am able to display references for the step 1 mentioned above.
4) I would like to count the references.
Here i have tried using the code OTscript as STR($CNT(doc5.references)) It is not working.
what is the change i have to do in the step 2 to count the references.
Please see the attached image for more details.
Your quick reply is appreciated.
09-11-2008 02:43 PM
Kals,
Although the document has a references field, it usually does not contain any references. Usually references are under a requirement. I figured this out by looking at the Library Report called Upstream Impact Analysis.
I think the code you want is
STR($CNT(doc1.requirements.references))
This will count the number of references of the requirements in the document. I wasn't able to tell from your post what condition you wanted on this, but you should be able to modify it to your needs.