Inserting Tables

You can insert a table in a template.

The following scenario inserts a table into the work area. The scenario is identical if you add a table to a section.

The following example Example: Creation of a Two-Columns Table presents the creation of a classical table.

See Also
About Structure Elements Tab
Inserting Tables
Inserting Free Text
  1. From the Structures tab:
    1. Drop the Table element into the work area.
      A two-columns table is added to the template structure.

    2. Drop the Row element into the table.
      A new line is added to the table.
      Note: You can add several rows.
      Tip: If you have deleted the header row, drop a Header Row at the top of the table to get a new header row.
  2. Optional: To define the table column number, you can:
    OptionDescription
    Drop the Header Cell element into the header row.



    The app inserts a new column at the chosen location in the table, in the header row, and in the rows.
    Drop the Cell element into a row.



    The app inserts a new column at the chosen location in the table, in the row, and in the header row.
    Drop a loop into the header row and add header cells in the loop.
    Tip: To find the insertion point for a loop in a table, move the pointer slightly below the table vertical borders to highlight a vertical line.



    Drop loops of the same length in each row of the table, and insert the same number of cells in these loops.

    The number of columns becomes variable depending on the loop.
  3. Optional: To customize the display of a table when generating a report, you can:
    OptionDescription
    Select a chart display for the table. For more information about entering a chart style in the Style field, see Chart Styles for Tables.

    You can enter an extra text in the Comments field. For example, you can enter Table displayed as a chart.

    Enter a ratio for a column. For more information about defining a ratio for a column in relation with the table width, see Setting Columns Widths.
    Format and filter a table, its rows, or its cells. For more information, see Formatting, Filtering, and Sorting Options.

Result: You can now insert text elements in the table.

Example: Creation of a Two-Columns Table

This example presents how to create a table with two columns. This table contains a loop.

The template must contain a section. A parameter req of Requirement type must be created.

  1. From the Structures tab:

    1. Drop Table into the section.
    2. Drop Text into the first cell of the header row, click it, and enter Name in the Text field of the Properties tab.
    3. Drop Text into the second cell of the header row, click it, and enter Content in the Text field of the Properties tab.
  2. From the Data tab:

    1. Expand a variable var and a category cat. For example, expand Navigation of req.
    2. Drop a method allElements corresponding to a loop into the table below the header row. For example, drop Snapshots into the table.

    The app creates a new variable in the Data tab. For the example, the sna variable is created.

  3. From the Structures tab, drop Row into the table in the loop.

  4. From the Data tab, expand a variable and a category.

    1. Drop data1 into the first cell of the row.
    2. Drop data2 into the second cell of the row.

    For the example, from the Attributes category of req, drop Name in the first cell and Context Text in the second cell.