Chat now with support
Chat with Support

Foglight Evolve 9.3 - Web Component Tutorial

Using the Web Component Tutorial Tutorial 1: Drag and Drop Tutorial 2: Creating a Dashboard Tutorial 3: Adding a Drilldown Page Tutorial 4: Adding Views Tutorial 5: Using a Grid Tutorial 6: Reports Tutorial 7: Creating a Form Tutorial 8: Renderers Tutorial 9: Adding Questions and Answers Tutorial 10: Sending Messages to Other Users

Additional activities

In this section you see how to adjust the width of a selected column and how to ensure that the report has a title. Also, you place a report in another component, and in doing so you see how the PDF Layout’s title property comes into play. You also see what is probably the best method for generating reports automatically by using a schedule.

The final activity provides you with some information on changing the headers and footers in case you want to change them after the first page, or at the beginning of each section of a long report.

Adjusting the table

In most cases the report generator does the best job it can in sizing the various components so that they all fit nicely on the page. Having said that, the generator may have difficulty with some combination of fixed- and variable-width components.

To make the table a little wider we add another column for average utilization of the CPU and we use a sparkline renderer to show the result.

The Add Renderer dialog box appears.
3
In the Add Renderer dialog box, ensure that the Create a Blank Renderer tab is selected.
4
On the Create a Blank Renderer tab, choose Sparkline, and click OK.
5
6
In the Definitions area, on the General tab, in the Name box, type Sparkline for Report.
1
Open the Load Summary Table T5 for editing, and open its Configuration tab.
2
Expand the Columns node and add a column with the following settings:
Value: Context
Input Key: currentRow (Host)
Path: CPUs - Host CPUs > Percent User Time - Metric
Renderer: My Renderers > Sparkline for Report
ID: CPU User Time
3
Add the column to the CPU Utilization group.

If you continue to add spark lines to the other groups, you may find that there are alignment problems with the table. In this case the problem seems to be that the Sparkline renderer may request too much space, causing problems for some other columns. In most cases you can cure this type of layout issue by setting the width of some of the variable-width columns.

1
Open the Load Summary Table T5 for editing, and open its Configuration tab.
2
Select the Show Advanced Properties check box.
3
Expand the column node whose ID is set to CPU User Time.
4
Expand the column’s Width node. In the Sizing row, in the Value column, click Edit , and choose Specified from the list that appears.
5
In the Value row, in the Value column, click Edit .
6
In the Edit - Value dialog box that appears, in the Integer value box, type 70, and click Set.

In other situations you may have to set the element widths of other variable-width components, but making just these changes produces a properly-formatted table when it tested during the construction of this tutorial.

If you follow exactly the above procedures , you may notice that even though you set the table’s title to Utilization Summary - Hosts, appear when you generated the PDF. The situation is quite similar to the point raised in Additional Activities in Tutorial 3. Causing a title to appear is a two-step process, and defining the title’s content is only the first step. You also have to configure the parent component to show the title.

1
Open the Hosts Summary Report T5 for editing, and open its Views tab.
2
Select the Load Summary Table T5 row and click Properties.
3
In the Properties dialog box that appears, on the General tab, select the Show title check box, and click Save.
4
Check Show Title and then click Save.

View the report in a dashboard

Edit the PDF Layout component and add an additional purpose by selecting its Pagelet check box, and then add it to row 0 and column 0 of a Grid component purposed as a Dashboard.

As part of adding the PDF Layout to the grid, add title and pageNumber as optional context inputs and give them default values. View the report and note that the title you set in the PDF Layout’s Additional Context is displayed.

Schedule a report in Foglight

When the construction of the Foglight® report is finished and it is giving you the result you want, you can schedule a report to run at any time. Creating a report schedule is a two-step process.

First, create a schedule for performing an action that as yet has not been specified.

1
On the navigation panel, under Dashboards, click Reports.
The Reports page appears in the display area.
The Run Report dialog box appears.
3
In the Run Report dialog box, on the All Templates tab, in the Templates column, locate and select the Host Summary Report T5, and click Next.
The Run Report dialog box refreshes, allowing you to supply context input values defined in the PDF Layout page.
5
Related Documents

The document was helpful.

Select Rating

I easily found the information I needed.

Select Rating