Adding a table element

You can create a table and specify the rows and columns from the editing view or by using the palette.

About this task

Tip: In the Microsoft Word and PDF output formats, consecutive tables appear as a single table in the generated output. The columns do not have the same width across these merged tables unless the col width property is set for each of the tables. When tables are merged, it is possible that the same row might display multiple times if the same data is displaying for multiple tables. You can use the once per table property to remove the duplicate rows.

Procedure

  1. In the Palette view, select the Table icon Table element and drag it into the template content editor. The New Table opens.
  2. In the New Table window, enter the number of rows and columns for the table.
  3. Click OK.

What to do next

You can add a container to the table element to help manage the data in the table.
Important: After you add a container to a table, row, or cell element, you cannot move that query outside of the table element. Containers are handled differently inside tables and that context does not apply outside of a table element. Use new container elements when necessary.

Common tasks for customizing the table shape

You can create a table containing cells of different sizes and shapes. Review these common methods for customizing your table.

Before you begin

  1. All rows or columns must contain the same number of cells.
  2. Remove properties set for the individual cells contained in the span.
  3. Avoid overlapping a span with another span.
  4. Generate the output in multiple formats to test the display of the table.

About this task

Few tables have a symmetrical row and column layout like this:
Symmetrical table of three rows and three columns

Instead, you can allow the cells to vary. Your table might have columns that adjust to their content, cells with specific widths, or a cell that spans multiple rows or columns. In most common scenarios, tables come from the data source as rich text, so review the table formatting to ensure that the context still applies in the generated report.

Procedure

Customize the table shape with any or all of the following common tasks:

Formatting cells with scripts

Procedure

To apply a border style script:

  1. Select a cell element.
  2. In the Properties view, select the Border tab.
  3. If it is not already selected, select the All border icon All border icon. This option is selected by default.
  4. For the Style property, click the ellipsis.
  5. Select the script expression tab and enter the following script:
    if(TableTopBorder == "TableBorderFull")
    {
    "single"
    }
    else if(TableTopBorder == "TableBorderDotted")
    {
    "dotted"
    }
    else if(TableTopBorder == "TableBorderNone")
    {
    "none"
    }
  6. Save the changes.

Feedback