You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

projectdoc Toolbox

Applies a simple set operation on tables in its body.

Categories
Since
2.1

The Table Set Macro applies a selected set operation on tables within the macro's body. Each table is considered a set of elements. Elements are identified by the contents of the selected column.

 

The current version of the macro only processes tables where the heading is found in the first table row (either inside an HTML thead element or not).

Properties

Selected Column

Specify the column that identifies a table row.

Set Operation

Select the operation on the sets, provided by tables within the macro body.

andSelect only on rows that are part of all tables.
orSelect rows that are part of any table. Table row columns are merged for cells are blank.
notRemove rows from the first table that appear on any other table.

Column Names

Specify the names of the columns to merge in any order.

Append a character to control the alignment of the column (header and data).

SignDescription
<Left alignment
|Center alignment
>Right alignment

Header Translations

Comma-separated list of key list-value pairs to map columns from tables.

Format: k1=v1|v2, k2=v3.

To translate the headings of the tables to be merged, specify the desired column name with the Column Names. Then map these names to the columns of the merged tables.

 

For this example we assume a table merge based on and.

The columns of table one are Short Name and My Tags, of table two Short Name and OtherThe merged table should have the columns Name and Tags .

Table One
Short NameMy Tags
......
Table Two
Short NameOther
......
Merged Table
NameTags
......

This is the configuration:

Column Names
Name, Tags
Header Translations
Tags=My Tags|Other, Name=Short Name

Note that mappings a separated by a comma, alternative values from the table columns are separated by pipes.

CSS Class

Style information for the table

Macro Body

Expected are two or more tables.

Details

Page Size Warnings

This macro supports macros that render a table. If such a macro runs into the limits set by the page size configuration and renders a warning, then this macro will render an error.

Related Macros

Table Merger Macro
Merges tables (and lists) into one table (or list).
  • No labels