Attributes Reference
You can click on any element, and the composition of the Attributes pane will adjust to show the ways it can be customized. Not all properties will apply to every attribute.
You cannot edit any Style or Attributes options for any selected report elements in the workspace while the Data tab has focus. Click the Structure tab to see the Style and Attributes panes for selected elements.
All of the items in the Attributes pane are described in the following reference:
Barcode
The following attributes belong to the barcode property:
Attribute Name | Purpose | Values |
---|---|---|
bar-height | Sets the height of the bar code. | Integer of any value. |
bar-width | Sets the width of the bar code. | Integer of any value. |
checksum | Shows the checksum value. | Boolean; default is false. |
type | Sets the type of bar code. | String; default is code128 (see Barbecue project documentation for details) |
show-text | Displays text under the bar code. | Boolean; default is false. |
Common
The following attributes belong to the common property:
Attribute Name | Purpose | Values |
---|---|---|
type | Defines the type of element. | Predefined and locked as an element type. |
field-name | Defines the existing field to use. | String; there is no default, you must define a value manually. |
value | Defines a hard coded value instead of a field. | String or integer; no default value. |
group-fields | Defines the field to group by. | String or integer; no default value. |
resource-value | A resource string found within the resource bundle. | String; no default value. |
resource-identifier | Defines the file that contains resource strings. | String; no default. This is a properties file, including the path. |
name | The name you want to assign to this element. | String; no default value. |
output-format | Sets preferred output type for the report. | String; no default value. Possible values are: html, pdf, xls, rtf, csv, xml. |
lock-output-format | Locks the output type specified in the output-format attribute so that no other output type can be chosen. | Boolean; default is false. |
auto-submit | If selected, your parameterized reports will automatically update based on the current selection in your parameter lists. If un-checked, parameter selections will not automatically change the report data; report users will have to select a new parameter value and then click View Report to update the report. | Boolean; default is false. |
format | Sets the Java format string. | String; there is no default. Must be in the Java number or date format. |
if-null | If the defined field or value returns null, show the value defined here. | Boolean; default value is false. |
message-null-value | If the message returns null, then return the value defined here. | String; no default value. |
arc-height | Defines the arc (corner) height of a rectangle. | Integer; default value is 0. |
arc-width | Defines the arc (corner) width of a rectangle. | Integer; default value is 0. |
data-cache | Determines whether parameter result sets are cached, which would reduce the amount of reload time when switching parameters in a rendered report. This option can be further configured through the org.pentaho.reporting.engine.classic. core.cache.InMemoryCache.CachableRowLimit and org.pentaho.reporting.engine.classic. core.cache.InMemoryCache.MaxEntries engine settings. | Boolean; default is True (cache is turned on). |
Table of Contents
The following attributes belong to the table-of-contents property:
Attribute Name | Purpose | Values |
---|---|---|
group-fields | Defines both the depth of the data-collection and the fields from which to read the group-value-X values. | If the group-field given in the array is empty, the field value will be read from the current relational group and in the details-processing, the value will be null. If the group-fields list is empty, an automatic mode is activated that collects all groups extracting the group-value from the relational group. |
title-field | Defines a field in the master-report that will be read for a valid item-title. | Any column field or function |
title-formula | Defines a formula that is evaluated when a new item has been collected. The formula will only be evaluated if the title-field is not set. | Formula |
collect-details | Defines, whether detail items should be included in the data-collection. | Boolean; default is false.
This attribute consumes a significant amount of system memory. Do not use this attribute on reports that are over a million rows. |
index-separator | Defines the separator text that is used between the index-elements. | String; default is comma (,). |
Index
The following attributes belong to the index property:
Attribute Name | Purpose | Values |
---|---|---|
data-field | Defines the field to be used as the item-data or item-key. | Any column field or function |
data-formula | Defines an open formula to be used as the item-data or item-key. | Formula
Important: Make sure that data-field is not defined, if this attribute is used.
|
index-separator | Defines the separator text that is used between page numbers in the item-pages field in the index sub report. It defaults to ",". | String; default is comma (,). |
condensed-style | Defines whether or not a dash (-) is used between continuous page numbers; for example, 4,5,6,7 display as 4-7. | Boolean; default is false. |
Excel
The following attributes belong to the excel property:
Attribute Name | Purpose | Values |
---|---|---|
formula | Converts an entered value or formula into a Excel numeric value. | String; no default value. |
page-header-text | Appends text into Excel page header. | String; no default value. |
page-footer-text | Appends text into Excel page footer. | String; no default value. |
HTML
The following attributes belong to the html property:
Attribute Name | Purpose | Values |
---|---|---|
append-header |
Inserts the HTML entered here into the <header> of the HTML output. |
String; no default value. |
append-body |
Inserts the HTML entered here into the <body> of the HTML output. |
String; no default value. |
append-body-footer |
Inserts the HTML entered here into the <footer> of the HTML output. |
String; no default value. |
alt-name |
Defines the text for the HTML <img> tag's alt attribute. |
String; no default value. |
HTML-Events
The following attributes belong to the html-events property:
Attribute Name | Purpose | Values |
---|---|---|
class |
Defines the value to insert into the HTML <class> tag. |
String; no default value. |
name |
Defines value for the name HTML object attribute. |
String; no default value. |
title |
Defines the value to insert into the HTML <title> tag. |
String; no default value. |
xml-id |
Defines value to insert into the HTML <xml-id> tag. |
String; no default value. |
on-click |
Defines value for the onclick HTML DOM event object property. |
String; no default value. |
double-click |
Defines value for the doubleclick HTML DOM event object property. |
String; no default value. |
on-mouse-down |
Defines value for the onmousedown HTML DOM event object property. |
String; no default value. |
on-mouse-up |
Defines value for the onmouseup HTML DOM event object property. |
String; no default value. |
on-mouse-move |
Defines value for the onmousemove HTML DOM event object property. |
String; no default value. |
on-mouse-over |
Defines value for the onmouseover HTML DOM event object property. |
String; no default value. |
on-key-down |
Defines value for the onkeydown HTML DOM event object property. |
String; no default value. |
on-key-pressed |
Defines value for the onkeypress HTML DOM event object property. |
String; no default value. |
on-key-up |
Defines value for the onkeyup HTML DOM event object property. |
String; no default value. |
Images
The following attributes belong to the images property:
Attribute Name | Purpose | Values |
---|---|---|
image-encode-quality |
Controls the JPEG encoding quality |
A decimal percentage value between 0 and 1. The closer to 1, the higher the quality and larger the file size. |
image-encode-type |
Determines the image format of PDF and HTML graphics. |
Possible values are: .jpg and .png. Default is .png. |
The following attributes belong to the pdf property:
Attribute Name | Purpose | Values |
---|---|---|
script | References a script name inside the PDF. | String; no default value. |
Pentaho
The following attributes belong to the pentaho property:
This list is incomplete.
Attribute Name | Purpose | Values |
---|---|---|
report-cache |
Determines whether parameterized reports published to the Pentaho Server are cached on a per-session basis, which would reduce the amount of reload time when switching parameters in a rendered report. |
Boolean; default is True (cache is turned on). |