register log on
Knowledge base
 

Reports with vertical layout

KB Artcile # 2647
Conventional reports are using tabular layout where columns are positioned from left to right and rows are positioned from top to bottom. This layout works for many cases, however in some scenarios, an alternative "vertical" layout provides a more practical approach to presenting data. This is especially true in cases when there are too many columns or when column captions must carry longer text.Arnica WebReport allows seamless switching between conventional horizontal and vertical layouts. This article discusses how this may be implemented.

First, a report should be created with no consideration as to its layout. Report may be deigned and previewed using the default horizontal layout:



Then, from report properties page, change layout from horizontal to vertical:





Preview report and note how columns are now positioned vertically and each row is logically positioned as a column:



From design point of view, developers should be aware that because of presentation differences, reports with vertical layout have different implementation of report features in some areas:

 

Feature

Description


Alternate row colors

Does not apply to records, i.e. the visible effect is report with horizontal stripes, where data columns are distributed horizontally (while data records are presented vertically).

 

CSS classes aaTableRow and aaTableRow2, as well as aaValueCell and aaValueCell2 are applied to the table rows, not to the data records.

 

CSS class aaSortedValueCell is applied to the table row, not to the table column.

 

CSS class aaSelectedValueCell is applied to the table column, which represents data record.



Data grouping

This feature is not available.

 

Although report may change data grouping and complete aggregate calculations, these results are not displayed. Only detail records are displayed.


Dynamic row style

Applies to table columns (which represent data records), not to table rows.


Export to Excel

Export to Excel is always performed using horizontal layout.


Export to text

Export to text is always performed using horizontal layout.


Export to XML

Export to XML is always performed using horizontal layout.


Report totals

This feature is not available.

 

Although report may complete aggregate calculations, these results are not displayed.