Blog Post

ReqView 2.3.0 Beta 3 - Template Columns

    beta

We have released the 3rd beta of ReqView v2.3.0 that introduces custom Template Columns. With this feature you can flexibly extend the table view by additional information, such as a calculated value or list of linked objects.

We have been asked by several customers how the table view can be extended by columns displaying additional information, such as

With the current stable release 2.2.x you can display this additional information by creating a Custom Export Template and exporting a static HTML report.

The new Template Column feature goes one step further — you can add a column displaying live dynamic content directly in the application UI! We will explain how to use this new exciting feature on the ReqView Demo Project.

Template Column

Let’s create a new Template Column called Section which displays the number of each SRS document section or the number of the parent section for each SRS leaf object:

  1. Switch to SRS document and choose Document > Template Column… menu to open Template Column dialog. In this dialog you can enter the new column label, which will be displayed in the table header, and the column template text:
    Template Column Dialog
  2. Press Check button to preview template output for the current document object.
  3. Press OK button and check the content of the new column called Section:
    Template Column Displaying Requirement Section Number
  4. You can edit or delete an existing Template Column using the context menu opened by right click on the column heading:
    Template Column Context Menu

Calculated Columns

Now, let’s create a Template Column which calculates the risk priority number as a product of severity, probability and determinability attributes for each Risk or Action object in RISKS document:

  1. Switch to RISKS document and create a new Template Column called RPN with the following template text:

    {{#if (eval (eval type "==" "Risk") "||" (eval type "==" "Action"))}}
    {{eval (eval detectability "*" probability) "*" severity}}
    {{/if}}

    HTML

  2. Check the output of the new RPN column which calculates the value of risk priority number after each change of SEV, PROB and DET columns:

    Template Column Calculating Risk Priority Number (RPN)

Custom Traceability Columns

As the last example, let’s create a Template Column which displays downstream traceability coverage of each top level user story in NEEDS document by linked SRS requirements and their TESTS:

  1. Switch to NEEDS document and create a new Template Column called Downstream Traceability with the following template text:

    {{#ifEqual type "User Story"}}
    {{#ifHasInlinks "satisfaction"}}
    <ul>
    {{#eachInlinkWith type="satisfaction"}}
    <li>
    {{docObjId}}: {{shortDescription maxLength=40}}
    <ul>
    {{#ifHasInlinks "verification"}}
    {{#eachInlinkWith type="verification"}}
    <li>{{docObjId}}: {{shortDescription maxLength=40}}</li>
    {{/eachInlinkWith}}
    {{else}}
    <li><i class='icon-li icon-warning-sign'></i> Missing verification links</span></li>
    {{/ifHasInlinks}}
    </ul>
    </li>
    {{/eachInlinkWith}}
    </ul>
    {{else}}
    <ul>
    <li><i class='icon-li icon-warning-sign'></i> Missing satisfaction links</li>
    </ul>
    {{/ifHasInlinks}}
    {{/ifEqual}}

    HTML

  2. Check the output of the new Downstream Traceability column displaying multilevel traceability coverage with warnings if a link is missing:

    Template Column Displaying Downstream Traceability Coverage