Tutorial
106 vFoglight
Web Component Tutorial
5
Add the table to the report as you did in Adding a Sample Page to the Report.
6
In the report’s Views tab, select the table and click Properties in the tab’s toolbar.
7
Save the changes to Hosts Summary Report T5.
Generating the Table
Test the work you have done so far by generating a PDF of the table.
To generate the report:
1
Ensure that Load Summary Table T5 is available in the Definitions pane.
2
Click its tab in the Definitions pane, and then choose Test PDF ().
3
Observe the result.
The table contains 9 columns. Having that many columns can present a challenge
to the layout algorithm, and it is possible you have noticed some issues that need
attention. In the Additional Activities section you’ll see how to adjust the width
of a column to improve the table’s layout.
Adding a Header
You could attempt to design fixed-layout views to use as the header and footer on a
single-page report, but in most cases all you require is a simple one-line header and
footer. Multi-page reports would present you with even greater challenges.
The Page Decoration component removes most of the effort in creating headers and
footers. It has right, center, and left areas where you can add icons and text. Page
numbering is easy because the Report component passes a special context,
pageNumber, to views if you assign the function Header or Footer to them.
Creating the Header Component
To create the Header component:
1
Choose Configuration > Definitions to add, from the Reporting node, a Page
Decoration component.










