...
A cell pattern is a single, rectangular range of cells in a template with a name assigned to it. Names are assigned in Excel either by selecting a cell or cell range, then defining a name for it, or in the Name Manager.
...
See [Supported Node Types] https://bmpi.atlassian.net/wiki/spaces/CRDOC/pages/3252125697/Working+with+Excel+Templates#Supported-Node-Types for the names to be assigned.
The style of the cells is copied to the stamped cells in the Excel report. This includes format, font, row height and column width, wrapping, colors, conditional formatting, merging, etc.
Some patterns are optional. These are only rendered if defined in the template.
The content of the cells is evaluated, then copied. All
${...}
expressions in the content will be treated as JavaScript expressions on report specificdata
.
Identifier | Description | Example |
---|---|---|
| The data to be rendered. This is e.g. a node, a row header, a table fact or a report specific data object. See [Supported Node Types] https://bmpi.atlassian.net/wiki/spaces/CRDOC/pages/3252125697/Working+with+Excel+Templates#Supported-Node-Types for details. |
|
| Render inline language dependent content. Takes an |
|
| Formatter for dates and date periods, where the Excel formats cannot be used. |
|
...
Page headers and footers set in the first worksheet of the main template are copied to all worksheets produced. They may contain ${...}
expressions, like cell patterns. The data
attributes supported are the same as for header
and footer
in [common cell patterns] https://bmpi.atlassian.net/wiki/spaces/CRDOC/pages/3252125697/Working+with+Excel+Templates#Common-Cell-Patterns.
Supported Node Types
The Excel Channel supports a limited set of report nodes. All The other node types in an abstract report are ignored, but not their childrendo not produce output in the Excel document.
Common Cell Patterns
For all supported nodes, the following cell patterns are rendered:
Pattern Name | Description | Optional | Content Data | |||||
---|---|---|---|---|---|---|---|---|
| Rows at the top of a worksheet. Content data is taken from the node creating the new worksheet and the report. | ✔️ |
| |||||
| Rows at the bottom of a worksheet. The content Content data is the same as for the header. | ✔️ | As for | |||||
| Cell created when an issue is encountered (e.g. a missing mandatory pattern). Content data is the issue. | ❌ |
|
...
Parameter | Description | Example | |||||
---|---|---|---|---|---|---|---|
| The style to apply. Used as name prefix when looking for cell patterns, see https://bmpi.atlassian.net/wiki/spaces/CRDOC/pages/3252125697/Working+with+Excel+Templates#Style-and-Language-Specific-Cell-Patterns. |
| |||||
| The Excel Channel rendering options. The supported options are:
|
|
...
Worksheets: SectionNode
A SectionNode
is rendered with renders its titles, and may start a new worksheet.
Simple Text: ParagraphNode
A ParagraphNode
is rendered as single line of text.
DataNode
...
renders its content.
Arbitrary Data: DataNode
A DataNode
renders the contents of its data object. It can be used to render arbitrary content to the Excel document, as the type of the data object itself is user defined.
Since the cell patterns depend on the type of data in the object, a DataNode
must have a style
.
Production Errors: ErrorNode
An ErrorNode
(typically the result of an error during report production) renders the error details.
Debugging Excel Rendering
...