XML Dimension
Overview
Section titled “Overview”In $report you can do changes to the rows. A ReportLine represents a row. Each ReportLine includes specific properties that allow you to customize the appearance and behavior of report rows.
ReportLine Properties
Section titled “ReportLine Properties”Each ReportLine includes these properties:
| Property | Description |
|---|---|
| key | The key represents the row number |
| label | Sets a row label |
| type | Row type can either be TYPE_TEXT, TYPE_SQL or TYPE_CALC |
| expression | Adds expression to TYPE_TEXT and TYPE_CALC |
| filter | Adds filter to TYPE_SQL |
| styleClass | Adds styling to the row |
Available Styles
Section titled “Available Styles”Here are the current styles that are available:
| Style | Description |
|---|---|
row-separator | Adds a blank row |
bold | Bold font style |
italic | Italic font style |
border-top | Adds a border on top of the row |
border-bottom | Adds a border at the bottom of the row |
background-blue | Fills the row with a blue color (also works with brown, cyan, green, dark-green, orange, pink, purple, red, turquoise, yellow, grey) |
color-blue | Makes the text blue (also works with brown, cyan, green, dark-green, orange, pink, purple, red, turquoise, yellow, grey) |
Example
Section titled “Example”<?xml version="1.0" encoding="UTF-8"?><java version="1.4.2_08" class="java.beans.XMLDecoder"> <object class="java.util.HashMap">
<void method="put"> <string>0</string> <object class="no.deem.analytics.olap.model.ReportLine"> <void property="key"> <string>0</string> </void> <void property="label"> <string>blue</string> </void> <void property="type"> <string>TYPE_TEXT</string></void> <void property="expression"> <string></string></void> <void property="styleClass"> <string>row-separator background-blue color-blue border-top</string> </void> </object> </void>
<void method="put"> <string>1</string> <object class="no.deem.analytics.olap.model.ReportLine"> <void property="key"> <string>1</string> </void> <void property="label"> <string>brown</string> </void> <void property="type"> <string>TYPE_TEXT</string></void> <void property="expression"> <string></string></void> <void property="styleClass"> <string>row-separator bold background-brown color-brown</string> </void> </object> </void>
</object></java>This example creates two styled rows:
- Row 0: Blue background, blue text, with a top border and row separator
- Row 1: Brown background, brown text, bold, with row separator
Related
Section titled “Related”- Creating a Report - Report configuration basics
- Report Scripts - Scripting functionality