The properties of a crosstab in a web report are:
Property Name | Description | |||
---|---|---|---|---|
Color | ||||
Background | Specifies the background color of the object. Choose a color from the drop-down list, enter a hexadecimal RGB value (e.g. 0xff0000), or select Custom from the drop-down list to specify the color.
Data type: String |
|||
Alternating Line Color | ||||
Direction | Specifies whether the color defined by the property Pattern List will apply to the fields in the same rows or columns in the crosstab.
Data type: Enumeration |
|||
Enable | Specifies whether to enable setting alternating line color for the crosstab. Only when it is set to true, the settings for the properties Direction and Pattern List can take effect.
Data type: Boolean Note: The setting of the alternating line color function for crosstab can only take effect when all the aggregate fields in the crosstab have transparent background. |
|||
Pattern List | Specifies the color pattern for the fields in the same rows or columns in the crosstab. Click in the value cell and click the small squares in the color tray one by one to specify the patterns. The patterns can be one or more of the following: Automatic, Color, Texture, and Gradient.
Data type: String |
|||
CSS | ||||
Class | Specifies a CSS class to be applied to the object which is a valid class in the CSS file.
Data type: String |
|||
Style | The property can be used in two ways.
Data type: String |
|||
Others | ||||
Enable Navigation | Specifies whether to enable scrollbars on the crosstab when the parent container cannot fully display the data of the crosstab.
When this property is set to true, you can further specify the height and width of the frame for holding the crosstab, by setting the two properties Navigation Height and Navigation Width. Data type: Boolean |
|||
Invisible | Specifies whether to show the object in the design area and in the report results. All formulas and calculations will still be performed if the property is set to true.
Data type: Boolean |
|||
Navigation Height | Specifies the height of the frame for holding the crosstab. Enter a numeric value to specify the height.
If no value is given here, JReport will calculate the height at run time.
This property takes effect only when Enable Navigation is set to true.
Data type: Float | |||
Navigation Width | Specifies the width of the frame for holding the crosstab. Enter a numeric value to specify the width.
If no value is given here, JReport will calculate the width at run time.
This property takes effect only when Enable Navigation is set to true.
Data type: Float |
|||
Record Location | Specifies the calculation point for the properties which use formulas. Choose an option from the drop-down list.
Data type: Enumeration |
|||
Suppress | Specifies whether to show the object in the design area and in the report results. All formulas and calculations will be skipped if the property is set to true.
Data type: Boolean Note: When both the Invisible and Suppress properties of an object are set to true, Suppress has the higher priority. |
|||
Suppress When No Records | Specifies whether to display the object in the report results when no record is returned to its parent data container.
Data type: Boolean |
|||
Border | ||||
Border Color | Specifies the color of the border of the object. Choose a color from the drop-down list, enter a hexadecimal RGB value (0xCCAA00), \or select Custom from the drop-down list to specify the color.
Data type: String |
|||
Has Border | Specifies whether to show the cell borders.
Data type: Boolean |
|||
Crosstab Property | ||||
Boundary Value | Specifies the number of columns in one aggregate cell when the crosstab is displayed horizontally, or rows when displayed vertically.
Data type: Integer |
|||
Column Total on Left | Specifies whether to display the Total column in the first column in the crosstab.
Data type: Boolean |
|||
Horizontal Gap | Specifies the space between the left/right edge of a crosstab cell and the contents in it.
Data type: Float |
|||
Row Total on Top | Specifies whether to display the Total row in the first row of the crosstab.
Data type: Boolean |
|||
Suppress Column Header | Specifies whether to suppress the column header in view mode.
Data type: Boolean |
|||
Suppress Row Header | Specifies whether to suppress the row header in view mode.
Data type: Boolean |
|||
Use Table Style | Specifies whether to add headers to the Total row and column.
Data type: Boolean |
|||
Vertical Gap | Specifies the space between the top/bottom edge of a crosstab cell and the contents in it.
Data type: Float |
|||
Vertical Layout | Indicates whether the aggregate fields are displayed vertically. The property is read only. | |||
TOC | ||||
Anchor Display Value | Specifies a string or formula to display for the TOC entry for this object in the TOC Browser. By default it is the value of the specified object. The TOC Anchor property must be set to true for this property to take effect.
Data type: String | |||
TOC Anchor | Specifies whether to include the object in the TOC Browser for the report.
Data type: Boolean |
A crosstab has some child objects, the properties of which will be shown in the following topics: