
96 vFoglight
Web Component Tutorial
Objectives of Tutorial 5
PDF reports are useful for archiving the status of your systems as well as for
communicating its recent operational level to interested parties. Whatever your needs,
the ability to create informative reports is important. The information needed in a report
and the way it should be displayed vary from one enterprise to another, so typically
reports are designed on site to meet local needs. This tutorial outlines the way that you
can create vFoglight reports using the Web Component Framework.
The objectives of Tutorial 5 are:
• Create a report. This task will require the creation of some context entries to set
the title of the report and to retrieve a list of hosts.
At first you’ll be asked to create a very simple report and then you’ll add to it.
• Add headers and footers to the report pages.
Headers and footers are required elements in most reports. You’ll see how to add
a company logo to the header of a report, and you’ll see how to add page numbers
to the footer.
• Design the content of the report body and choose the proper view components
based on that design.
• Embed a pair of body components in an Iterator so that similar body pages are
created simply by iterating a list of hosts.
The number of active hosts monitored by vFoglight is a variable. Using an
Iterator permits you to pass a list of hosts resulting from a runtime query and
generate a page for each host. Thus, the example serves as a paradigm for any
task that performs the same set of actions on objects in a dynamically-generated
list.
Designing the Page
You’ll begin by constructing the required query. Next, you’ll create a simple report page
that contains an existing view. Finally, you’ll create a more complete report that
contains a header, a footer, and an iterated view of host data. The design schematic is
shown in the table.
Comentarios a estos manuales