Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Document Properties Marker
overridefalse


Short DescriptionApplies a simple set operation on tables in its body.
Doctypemacrohide
NameTable Set Macro
Parent
Parent Property
property-nameName

Audience
Name List
doctyperole
render-no-hits-as-blanktrue
propertyAudience

Type
Name List
doctypemacro-type
render-no-hits-as-blanktrue
propertyType

Subject
Name List
doctypesubject
propertySubject

Categories

Name List
doctypecategory
namesVisual
propertyCategories


Tags

Tag List
propertyTags


Iteration

Iteration
valueproduction

hide
Since2.1


Deprecatedhide
Removedhide
Sort Keyhide



Section
indextrue
show-titlefalse
titleDescription

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.

Note Box

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).


Section
titleProperties


Section
titleSelected Column

Specify the column that identifies a table row.


Section
titleSet 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.



Section
titleColumn 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



Section
titleHeader 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 

In-Document Link
anchorColumn Names
. Then map these names to the columns of the merged tables.

Example Box

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 .

Section


Column


Panel
titleTable One


Short NameMy Tags
......




Column


Panel
titleTable Two


Short NameOther
......




Column


Panel
titleMerged Table


NameTags
......




This is the configuration:

Code Block
languagetext
titleColumn Names
Name, Tags


Code Block
languagetext
titleHeader 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.



Section
titleCSS Class

Style information for the table



Section
titleMacro Body

Expected are two or more tables.


Section
titleDetails


Section
indextrue
titleRelated Macros


Tour
render-as-definition-listtrue
replace-title-with-nametrue


TitleShort Description
Table Merger Macro




Section
titleSubordinate Macros
Display Table
doctypemacro
render-no-hits-as-blanktrue
selectName, Short Description
restrict-to-immediate-childrentrue
sort-bySort Key, Name


Section
required-permissionswrite-access
titleNotes


Section
titleReferences


Section
titleResources