Generic Child Bucket Table Placeholder
Overview
| Placeholder Id | 537412003 |
| Placeholder type | Text |
| Entity | Works with both planning records and bucket records |
| Context | Supported: _language, _country |
| Function variables | Config Id — Id of the table defined inside childBucketTable.xml |
| Data Query | com.print.accpack.childbuckettable.dataquery.BucketQueryPlugin.getBucketOrPlannedBucket |
| Data Mapping | com.print.accpack.childbuckettable.datamapping.TableDataMappingPlugin.getChildBucketTable |
| Data Processing | com.priint.pubserver.comet.bridge.dataprocessing.IndesignTaggedTextFunctions.tableDataToTaggedTextWithOptionOptions: ColumnWidthFromRowWithMostCells, TidyFirst, AutoLoadOff |
The AutoLoadOff option of Data Processing tells the Publishing Server to skip autoloading placeholders inside
table cells on placement.
- Consider a table with 100 cells: the plugin fills all cell values during the initial table build.
- You can still assign individual placeholders to cells to allow reloading specific values if the underlying data changes — this lets users do manual finishing without rebuilding the whole table.
- Without
AutoLoadOff: all placeholders in the cells would load on placement as part of the template build. Since the plugin already set the initial values, this loading adds no value — it only adds unnecessary requests and hurts performance. - If a placeholder performs additional logic (e.g. loading a sub-template or an image placeholder), it still needs to
run — in that case, remove
AutoLoadOfffrom the Data Processing options. SeetemplateId.
XML Configuration File
The XML configuration file childBucketTable.xml should be created in ISON Eclipse, located at:
com.priint.accpack.childbuckettable.GenericChildBucketTablePlugin/<client>/default
Example for <client> = WerkII:
The sections below document all elements and attributes of childBucketTable.xml.
Required elements are marked with (*).
tableConfiguration(*)
Defines the overall table behavior, including how child records are collected, whether a header row is generated, and when the optional last column is displayed.
| Attribute | Required | Description |
|---|---|---|
configId | yes | Configuration ID used as the placeholder function variable |
mode | yes | Detects children of a bucket or a planning record. • bucket: children of a parent bucket or parent planned bucket• planning: planned bucket record of a planning record |
tableStyle | Table style to be applied |
The direct child elements as below of <tableConfiguration> can appear in any order.
Example:
<tableConfiguration configId="ArticleTable" mode="bucket" tableStyle="TableStyle" />
rowFilters
Filters the child buckets or planned bucket record(planning mode) before they are added to the table. Multiple filter conditions can be combined using the configured logical operator.
Omitting <rowFilters> means all child buckets or planned bucket record(planning mode) are included in the table.
| Attribute | Required | Description |
|---|---|---|
operator | Determines how multiple <rowFilter> conditions are combined.• and: includes a row if the child bucket matches all conditions• or: includes a row if the child bucket matches at least one condition(Default) |
rowFilter
Child element of <rowFilters>. If parent element <rowFilters> is configured, this element is required.
Each child element defines one condition.
| Attribute | Required | Description |
|---|---|---|
sort | Ordering of the condition to filter (integer). Default 0 | |
entityIdentifier | yes | Entity identifier of the child bucket(bucket mode) or sub-planning record(planning mode) |
Example:
<rowFilters operator="or">
<rowFilter sort="1" entityIdentifier="article"/>
</rowFilters>
groupColumns
Groups body rows by one or more key values. Contains one or more <keyValue> child elements defining the grouping
fields.
| Attribute | Required | Description |
|---|---|---|
cellStylePostfix | Appends a postfix to the cell style defined by the <groupFormats>. Useful for applying different cell styles to individual columns without defining additional row formats | |
paraStylePostfix | Appends a postfix to the paragraph style defined by the <groupFormats>. Useful for applying different paragraph styles to individual columns while reusing the same row format | |
cellValueDelimiter | When grouping by multiple key values, this string delimits each value in the group cell | |
groupedSortStrategy | Sort order for grouping rows. Only takes effect when groupedSort is set.• asc• desc• (empty string): keeps the original sort order but still groups records |
Postfix is appended verbatim. No separator is added. With the paragraph style
Body,paraStylePostfix=" Copy"(with a leading space) gives the styleBody Copy, whileparaStylePostfix="Copy"givesBodyCopy.
Grouping rows stay with their rows. When a table breaks across pages, a grouping row is kept together with the body rows that belong to it.
To format grouping rows, see <groupFormats>.
keyValue
Child element of <groupColumns>. If parent element <groupColumns> is configured, this element is required.
Each child element defines one grouping field
| Attribute | Required | Description |
|---|---|---|
sort | Ordering of the value of the key value on the grouping row (integer). Default 0 | |
entityIdentifier | Entity identifier of the key value to filter | |
key | Key of the key value to filter | |
groupedValue | yes | Which field of key value to group. Supports xpath (v1) expressions |
groupedSort | Which field to use for sorting. Supports xpath (v1) expressions. Empty value means no sorting; the grouping rows follow the bucket tree order | |
cellValue | Which value to display on the grouping row. Supports xpath (v1) expressions. In most cases equals groupedValue, but can differ if you want to display a different value on the grouping row |
Example (group by multiple key values):
<groupColumns cellStylePostfix="" paraStylePostfix="" cellValueDelimiter="," groupedSortStrategy="asc">
<keyValue sort="1" entityIdentifier="category_attribute" key="brand" groupedValue="@value" groupedSort="@value"
cellValue="concat(@keyLabel, ': ', @value)"/>
<keyValue sort="2" entityIdentifier="category_attribute" key="name" groupedValue="@value" groupedSort="@value"
cellValue="concat(@keyLabel, ': ', @value)"/>
</groupColumns>
Example (group by single key value):
<groupColumns cellStylePostfix="" paraStylePostfix="" cellValueDelimiter="" groupedSortStrategy="asc">
<keyValue sort="1" entityIdentifier="category_attribute" key="brand" groupedValue="@value" groupedSort="@value"
cellValue="concat(@keyLabel, ': ', @value)"/>
</groupColumns>
columns(*)
Contains a list of <column> elements that define the table header and body cells.
| Attribute | Required | Description |
|---|---|---|
uniqueRow | true: removes body rows whose values are identical across all columns, keeping the first occurrence. Duplicates are detected within a group only: each grouping row starts a new group, so the same values may appear again under a different group. Header, grouping and footer rows are never removed and never compared.false (default): duplicate rows are always shown | |
removeEmptyRow | true: removes body rows where every column value is empty/null. Header, grouping and footer rows are never removed, even if all their cells are empty. A grouping row is kept even when all of its body rows are removed.false (default): empty/null rows are always shown | |
uniqueColumn | true: deduplicates columns with identical values across all rows, keeping only one instance. Also applies to columns generated by <search>false (default): duplicate columns are always shown |
Example:
<columns uniqueRow="true" removeEmptyRow="true" uniqueColumn="true">
<column/>
<column/>
</columns>
column(*)
Child element of <columns>.
Each <column> defines one header cell and one body cell. A cell can contain several items: one or more <keyValue>
elements and/or <mediaAsset> elements.
Items are rendered in document order, from top to bottom. Consecutive items, whether <keyValue> or <mediaAsset>, are
separated by cellValueDelimiter.
Exception: a <column> whose <keyValue> contains a <search> element is expanded into one column per matching key
value. Each generated column has the width of the <column> and is placed at the sort position of the <column> (
see search).
| Attribute | Required | Description |
|---|---|---|
sort | Display order of the column in the table (integer). Default 0 | |
width | Column width in mm. Default 0 | |
removeEmptyColumn | true: removes columns where every row value is empty/null. Also applies to columns generated by <search>false (default): empty/null columns are always shown | |
removeConstantColumn | true: removes columns where every row value is the same(not empty/null). Also applies to columns generated by <search>false (default): same value columns(not empty/null) are always shown |
<header> and <body>
Child elements of <column>.
These attributes are shared by <header> and <body> cells.
| Attribute | Required | Description |
|---|---|---|
cellStylePostfix | Appends a postfix to the cell style defined by the <rowFormat>. Useful for applying different cell styles to individual columns without defining additional row formats | |
paraStylePostfix | Appends a postfix to the paragraph style defined by the <rowFormat>. Useful for applying different paragraph styles to individual columns while reusing the same row format | |
cellValueDelimiter | When a cell contains multiple values, this string delimits each value in the cell. Supports HTML-escaped characters, e.g. <br/> for a new line |
Postfix is appended verbatim. No separator is added. With the paragraph style
Body,paraStylePostfix=" Copy"( with a leading space) gives the styleBody Copy, whileparaStylePostfix="Copy"givesBodyCopy.
Header rows repeat across pages. When a table breaks onto another page, the header rows are automatically repeated at the top of each continuation page.
To format header row, see <headerformats>.
To format body rows, see <rowformats>.
Example:
<columns>
<column>
<header/>
<body/>
</column>
</columns>
keyValue
Child element of <header>/<body>/<footer>
Defines one cell used to display a key value in the table cell.
| Attribute | Required | Description |
|---|---|---|
entityIdentifier | Entity identifier of the key value to filter. Exception: entityIdentifier is not required when using a <search> element | |
key | Key of the key value to filter. Exception: key is not required when using a <search> element | |
cellValue | Which field value to display on the cell. Supports xpath (v1) expressions | |
prefix | Characters added before the cell value. Supports HTML-escaped characters, e.g. <br/> | |
suffix | Characters added after the cell value. Supports HTML-escaped characters, e.g. <br/> | |
characterStyle | Formatting character style | |
placeholderId | Placeholder ID to place inside the cell |
Example:
<columns>
<column sort="1" width="20">
<header cellStylePostfix="" paraStylePostfix="">
<keyValue entityIdentifier="category_attribute" key="name" cellValue="@keyLabel" placeholderId=""/>
</header>
<body cellStylePostfix="" paraStylePostfix="" cellValueDelimiter="<br/>">
<keyValue entityIdentifier="category_attribute" key="latin_name" cellValue="@value" placeholderId=""
characterStyle=""/>
<keyValue entityIdentifier="category_attribute" key="name" cellValue="@value" placeholderId=""
characterStyle=""/>
</body>
</column>
</columns>
search
Child element of <keyValue>.
One <search> element is supported per <keyValue>. This element extends the existing <keyValue> configuration to
support dynamic lookup of key-value pairs based on a matching criterion, instead of requiring the exact
entityIdentifier + key pair to be hard-coded.
When the search matches several key values, each matching key value becomes its own column. The generated columns
take the sort position and the width of the original <column>.
The <header> and the <body> of the same <column> must both contain a <keyValue> with a <search>, and both
<search> elements must use the same field, operator, and value. This ensures that the header cell and the body
cells are generated for the same key values. When headerRow is false, the header is ignored and only the <body>
needs a <search>.
For example, if the key values of entity product_attribute are sku and plant_name, the <column> below produces
two columns: one for sku and one for plant_name. The header cell of each generated column shows the keyLabel of
its key value, and the body cells show its value.
<column sort="1" width="20">
<header cellStylePostfix="" paraStylePostfix="">
<keyValue cellValue="@keyLabel">
<search field="entityIdentifier" operator="eq" value="product_attribute"/>
</keyValue>
</header>
<body cellStylePostfix="" paraStylePostfix="">
<keyValue cellValue="@value">
<search field="entityIdentifier" operator="eq" value="product_attribute"/>
</keyValue>
</body>
</column>
Search attributes:
| Attribute | Required | Description |
|---|---|---|
field | yes | Which property of a key-value record to match against (see Supported fields below) |
operator | yes | How to compare the record's field value against value (see Supported operators below) |
value | yes | The value to compare against (a literal string or, for regex, a regular expression pattern) |
Each <search> targets exactly one field at a time.
Supported fields:
| Field | Matches against |
|---|---|
entityIdentifier | The entityIdentifier of a key-value record |
key | The key of a key-value record |
keyLabel | The keyLabel of a key-value record |
keySymbol | The keySymbol of a key-value record |
groupIdentifier | The groupIdentifier of a key-value record |
Supported operators:
| Operator | Meaning |
|---|---|
eq | Field value equals value (case-insensitive) |
neq | Field value does not equal value (case-insensitive) |
contains | Field value contains value as a substring (case-insensitive) |
ncontains | Field value does not contain value (case-insensitive) |
startsWith | Field value starts with value (case-insensitive) |
nstartsWith | Field value does not start with value (case-insensitive) |
endsWith | Field value ends with value (case-insensitive) |
nendsWith | Field value does not end with value (case-insensitive) |
regex | Field value fully matches the regular expression in value (case-sensitive) |
mediaAsset
Child element of <header>/<body>.
Defines one cell used to display an image in the table cell.
| Attribute | Required | Description |
|---|---|---|
entityIdentifier | Entity identifier of the media asset to filter | |
cellValue | Use either @url or @file, depending on how the media asset is stored. Only one should be used per media asset configuration | |
label | Each value is delimited by ; supports regular expressions with prefix regexp: to search images by label | |
width | Width in mm Default 0 | |
height | Height in mm Default 0 | |
placeholderId | Placeholder ID to place inside the cell Default 0 | |
templateId | Places a sub-template inside the cell instead of a direct image reference Default 0 | |
placement | Position of the image inside the cell: center, left, or rightDefault center |
When using
templateIdorplaceholderId, removeAutoLoadOfffrom the Data Processing options to enable image loading.
Example:
<column sort="30" width="30">
<body cellStylePostfix="" paraStylePostfix="">
<mediaAsset entityIdentifier="ArticleAsset" label="PRODUCT_IMAGE" cellValue="@url" placeholderId="" width="30"
height="30" placement="center"/>
</body>
</column>
Value Transformation
Cell values can be transformed before they are written to the table. See ChildBucket_StaticContent.
staticContent.xml is located in the same folder as childBucketTable.xml.
Two mechanisms are supported.
1. Static transform (//static_transform)
Replace cell value by using value define inside staticContent.xml.
Example: Finds identifier "image_header" inside staticContent.xml by context. In this case, entityIdentifier
and key are not required.
<header>
<keyValue cellValue="//static_transform['image_header']"/>
</header>
Example: Finds the identifier by evaluating xpath @key of key value, then looks it up in staticContent.xml using
context.
<header>
<keyValue cellValue="//static_transform[@key]"/>
</header>
2. Dynamic transform
Transforms a found key value object by using a custom Publishing Server plugin method.
Example: Calls a custom Publishing Server plugin method. The method receives a KeyValue entity cast from Object.
<body>
<keyValue entityIdentifier="product_attribute" key="plant_name"
cellValue="plugin(globalName='com.priint.project.demo.TransformPlugin',methodName='transformName')"/>
</body>
Publishing Server plugin method implementation:
package com.priint.project.demo;
@Stateless(mappedName = TransformPlugin.MAPPED_NAME)
@LocalBean
@PubServerPlugin
public class TransformPlugin extends PluginControlDefault {
public static final String MAPPED_NAME = "com.priint.project.demo.TransformPlugin";
public String transformName(Object object) {
KeyValue kv = (KeyValue) object;
//your implementation
}
}
Placeholder inside cell
See ChildBucket_StaticContent and ChildBucket_KeyValueById for supported placeholder types.
functionVariables
Child element of <keyValue>/<mediaAsset> .
Defines function variables for a placeholder in the table cell. How many variables depend on the placeholder ID configured.
Example:
<keyValue>
<functionVariables/>
</keyValue>
<mediaAsset>
<functionVariables/>
</mediaAsset>
variable
Child element of <functionVariables>. This element is required if parent element functionVariables is configured.
| Attribute | Required | Description |
|---|---|---|
name | yes | Name of the function variable — placeholder option name |
value | yes | Initial value of the function variable — placeholder option value. Supports xpath (v1) expressions |
ChildBucket_KeyValueById supports an xpath function variable, defined as follows:
<keyValue entityIdentifier="product_attribute" key="plant_name" cellValue="@value" placeholderId="537688584"
characterStyle="Body-Bold">
<functionVariables>
<variable name="xpath" value="@value"/>
</functionVariables>
</keyValue>
footer
Child element of <tableConfiguration>.
Defines the footer rows displayed at the bottom of the table. Only one <footer> element is allowed per
<tableConfiguration>.
Only <keyValue> is supported inside <footer>. The cells of a footer row are merged across all columns.
| Attribute | Required | Description |
|---|---|---|
cellStylePostfix | Appends a postfix to the cell style defined by <footerFormats> | |
paraStylePostfix | Appends a postfix to the paragraph style defined by <footerFormats> |
<search> is not supported on <keyValue> of <footer>.
Postfix is appended verbatim. No separator is added. With the paragraph style
Body,paraStylePostfix=" Copy"( with a leading space) gives the styleBody Copy, whileparaStylePostfix="Copy"givesBodyCopy.
Footer rows repeat across pages. When a table breaks onto another page, the footer rows are automatically repeated at the top of each continuation page.
A footer can show information in two ways.
1. Static footer
Displays fixed text, typically a translation from //static_transform. Each <keyValue> produces exactly one footer
row.
<footer cellStylePostfix="" paraStylePostfix="">
<keyValue cellValue="//static_transform['footer_note']"/>
<keyValue cellValue="//static_transform['footer_source']"/>
</footer>
To format footer rows, see <footerformats>.
2. Dynamic footer (scan)
Scans all child buckets or planned buckets of the table. For the configured key value, it collects the values from every bucket and merges identical values into one. Each distinct value is rendered as one footer row.
For example, if the scanned buckets contain the values A, B, A, C, B, the footer shows three rows: A, B
and C.
<footer cellStylePostfix="" paraStylePostfix="">
<keyValue entityIdentifier="product_attribute" key="plant_name"/>
</footer>
Row Format
A <rowFormat> defines the height and the styles of one or more rows.
| Attribute | Required | Description |
|---|---|---|
sort | Row format ordering. When several formats match the same row, the format with the higher sort overrides the formats with lower sort Default 0 | |
height | Row height in mm Default 0 | |
first | First row number the format applies to. Based on 1. Default 1 | |
next | Step number between two rows the format applies to Default 0 | |
cellStyle | Cell style to apply to the row | |
paraStyle | Paragraph style to apply to the row |
How first and next select rows
A <rowFormat> applies to the rows numbered first, first + next, first + 2 × next, and so on. Row numbers are
based on 1.
- Each row type is numbered separately. Header rows, grouping rows, body rows, and footer rows each have their own numbering, starting from 1.
- Numbering is continuous across the table. When the table has grouping rows, the numbering does not restart in each group.
- Overlapping formats. When several
<rowFormat>elements match the same row, the format with the highersortoverrides the formats with lowersort. - No matching format. A row that matches no
<rowFormat>gets no format applied.
Single format for all rows: first="1" next="1".
Row Format Examples
1. Apply one format to all rows
first="1" next="1" applies the format to rows 1, 2, 3, 4, and so on.
<rowFormat first="1" next="1" height="8" cellStyle="Cell_Body" paraStyle="Para_Body"/>
2. Apply a format to a single row only
When next is omitted (default 0), the format applies only to the row defined by first.
<rowFormat first="1" height="12" cellStyle="Cell_Highlight"/>
3. Alternating rows (zebra striping)
Use next="2" with different first values.
| Format | first | next | Selected rows |
|---|---|---|---|
| Odd rows | 1 | 2 | 1, 3, 5, 7, ... |
| Even rows | 2 | 2 | 2, 4, 6, 8, ... |
<!-- Odd rows: 1, 3, 5, ... -->
<rowFormat first="1" next="2" height="8" cellStyle="Cell_Odd"/>
<!-- Even rows: 2, 4, 6, ... -->
<rowFormat first="2" next="2" height="8" cellStyle="Cell_Even"/>
headerFormats
Child element of <tableConfiguration>.
Applies to header row only, when the table contains header row.
If the element is not configured, the <rowFormats> as below would be used.
<headerFormats>
<rowFormat sort="1" height="7" first="1" next="1" cellStyle="Header" paraStyle="Header"/>
</headerFormats>
groupFormats
Child element of <tableConfiguration>.
Applies to grouping rows only, when the table contains grouping rows.
If the element is not configured, the <rowFormats> as below would be used.
<groupFormats>
<rowFormat sort="1" height="7" first="1" next="1" cellStyle="Group" paraStyle="Group"/>
</groupFormats>
footerFormats
Child element of <tableConfiguration>.
Applies to footer rows only, when the table contains footer rows.
If the element is not configured, the <rowFormats> as below would be used.
<footerFormats>
<rowFormat sort="1" height="7" first="1" next="1" cellStyle="Footer" paraStyle="Footer"/>
</footerFormats>
rowFormats
Child element of <tableConfiguration>.
Typically applies to body rows, but it can also be applied to all rows of the table (header, grouping, and footer rows included).
Example:
<rowFormats>
<rowFormat sort="1" height="7" first="1" next="1" cellStyle="Body" paraStyle="Body"/>
</rowFormats>