XML Dimension
ReportLine
Section titled “ReportLine”In $report you can do changes to the rows. A ReportLine represents a row.
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 |
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>