Tutorial

Tutorial 5: Reports 109
Adding a Footer
6
Click Save in the dialog.
7
Select Header from the Function drop-down.
8
Select the header and click the Move Up ( ) button to place the
component as the first view.
9
Click Save on the bar containing the tabs to save Hosts Summary Report T5.
Adding a Footer
You saw how to add items to all three places in the header, and the footer component is
simpler. To demonstrate how to use the report’s pageNumber built-in context, you will
place a page number at the bottom-center of the page.
To create the Footer component:
1
Follow the procedure for adding a header, making these changes:
2
Type Footer: Page Number T5 in the Name field.
3
Enter Footer for Hosts Summary Report T5 in both the Comments and the
Context Help text fields.
To set the context:
1
Select the Context tab.
2
Click the Add Context Input button ( ) in the Inputs group.
A new row appears.
3
Click on the new row to launch the Edit dialog.
4
Type pageNumber in the Key field.
This is the context you set in the parent report.
5
Ensure that Usage is Required.
6
Set Data Source Type to Common.
7
In the drop-down, set Data Type to Integer.
8
Leave List set to False.
9
In the dialog, click Save.