Dynamically Publish Tables for Requirements in a single Module Query Loop with RPE
![]() I am trying to loop through all artifacts in a module and print out 3 types of artifact which are mixed together across many sections in the module:- Heading, Text and Requirements (or term definitions for another example).
The Requirements table in RPE would have a header row with 'once per table' set to true
![]()
In the event that a series of requirements was encountered a single table would be published with a single title row followed by a row for each requirement containing requirement attribute values.
![]()
The way RPE handled the iteration in DOORS Classic was quite clever as it did not generate a new table for each requirement (even though a complete table is specified inside the template's module iteration for type 'requirement') but rather it would add a new row to the existing table if a table had already been started for immediately preceding requirements)
So the following could be achieved with a single query loop on the above module
![]()
I am trying to do the same thing in DOORS Next but I cannot prevent the header row from repeating before each requirement artifact like the following
![]() I have set the Header row to 'Once per table' to true but the header row repeats before every requirement.
So is it possible to achieve the same results with DOORS Next that we used to get with DOORS Classic?
|
Accepted answer
![]() You can apply a condition (_isPrinted == "false") on the header row and set the value to template variable _isPrinted (_isPrinted = "true") within the query that prints the terms. Sean F selected this answer as the correct answer
|