In this section: |
You can add underlines to a financial report to set off and clarify calculations and use a variety of formatting techniques to draw attention to individual columns, rows, and cells in a financial report. As in other WebFOCUS reports, certain formatting features can be triggered by conditions that you define.
You can also drill down to another procedure or a URL from a cell or column in a financial report.
For details about conditional formatting and drill-down procedures, see the Creating Reporting Applications With Developer Studio manual.
How to: Reference: |
Reports that display columns of numbers frequently need to use underlines before calculations. You can specify a single or double underscore character in a BAR row.
In the Design matrix:
or
Right-click anywhere in the row (except on the label) and select Change Type to, and then Bar.
The BAR dialog box opens.
Note: In HTML reports, the double line appears as a single thick line.
BAR appears in the Row Type column. The selected symbol appears under columns that contain numeric data.
How to:
Reference: |
You can apply a wide range of formatting options to individual columns, rows, and cells in a financial report using options on the Field Properties Style tab.
You can further refine formatting:
If you style a row and then a cell within that row, the cell styling takes precedence for the cell.
If you style a column and then a cell with that column, the cell styling takes precedence for the cell.
If you style a cell, then style a row or column that the cell is in, the cell style will remain the same.
You can select an entire row by clicking the row label (R1, R2, R3, and so on) and then style that row using the font toolbar. For example, clicking R1 will highlight all entries in that row. While the row is highlighted, changing the font color to orange will result in every entry in that row having its font color changed to orange.
Row and cell styling options are specific to financial reports created in the Financial Report Painter. Column styling options are identical whether applied from the Financial Report Painter or Report Painter.
If you have already styled either the title or data for a column and wish to quickly apply the same formatting to the other element, click the appropriate button: Copy Title Style to Data or Copy Data Style to Title.
Width options are:
Sets the width according to the length defined in the field format.
Sets the width of the column according to the widest value or heading in the field. This is selected by default.
Enables you to specify where to truncate the column width based on the specified units (inches or centimeters). To indicate that a field value has been truncated in the browser, WebFOCUS places an exclamation point (!) after every alphanumeric and text field value and an asterisk (*) after every numeric field value.
Enables you to specify where to wrap data based on the specified units (inches or centimeters).
Justification options are: left, right, center, or return to the default positioning.
Enables you to select the present hidden option. This determines the columns that will be hidden from view in the report output, when using the HTML active report output format.
You can apply the same specifications to all border lines or vary specifications for top, bottom, right, and/or left borders.
Note: To set borders in an HTML report, Cascading Style Sheets must be on. Click Features from the Report menu. The Report Options dialog box opens. Ensure that an HTML styled report format is selected and verify that Cascading Style Sheets is checked.
When Borders is selected, Grids is disabled.
When Grids is selected, Borders is disabled.
If you identify the active object as column data, the Alternating Background Colors button is activated. You can use this feature to assign colors to alternating rows in one or more columns.
Click OK to return to the Style tab.
Tip: To affect other column features, click the:
For details about conditional formatting and drill-down procedures, see the Creating Reporting Applications With Developer Studio manual.
This example uses the joined data source files, CENTGL and CENTSYSF (see Sample Data for FML Hierarchy Examples), and takes as its starting point the request created in Displaying One Summary Line for an FML Hierarchy. However, instead of applying a predefined stylesheet, as you did in the earlier example, you will be formatting the report yourself. You will apply bold formatting to each column title, data visualization bar graphs to a numeric column to help you quickly visualize trends and relationships in your data, and conditional styling to the data in a second numeric column.
If you did not complete the referenced example, follow those instructions up to step 13, then return here.
The output is:
Suppose that you want to highlight Monthly Actual Values that are less than 100,000.
The values below 100,000 appear in boldface type:
You can apply the same specifications to all border lines or vary specifications for top, bottom, right, and/or left borders. Click OK.
Note: To set borders in an HTML report, Cascading Style Sheets must be on. Click Features from the Report menu. The Report Options dialog box opens. Ensure that an HTML styled report format is selected and verify that Cascading Style Sheets is checked.
The following are examples of formatting rows using the design matrix.
The following example places a thick dashed border around the RECAP row identified by the label TOTCASH.
One
way to quickly create a row for this simple type of calculation
is to place your cursor in a column that contains numeric data and
highlight the values you want to add. Then click the Make
RECAP (Rows)
icon
on the Design toolbar to create the RECAP row. A formula representing
the sum of the highlighted values (identified by their row labels)
appears in the new row, in the column that contained the values.
For information about creating more complex RECAP expressions, see Performing Inter-Row Calculations.
Note: To set borders in an HTML report, Cascading Style Sheets must be on. Click Features from the Report menu. The Report Options dialog box opens. Ensure that an HTML styled report format is selected and verify that Cascading Style Sheets is checked.
The output is:
Notice that the dashed border has been placed around the entire row. The gray background is applied by a default style template that you selected in step 6.
In the following variation, specifications are applied separately to the top, bottom, left, and right border lines. A heavy black border line is placed above and below the RECAP row. A thinner dotted line is placed to the left and right of each column in the row.
The output is:
The following procedure is an example of applying boldface to a free text row.
The matrix should look as follows:
The output is:
Note: If you were to look at the source code for this procedure, you would see the two free text rows specified using the following code:
TYPE=REPORT, LABEL=R1 , STYLE=BOLD, $ TYPE=REPORT, LABEL=R6 , STYLE=BOLD,$
The Financial Report Painter identifies a free text row with a row label designation.
The following procedure describes how to format a cell in the Design Matrix.
You can apply the same specifications to all border lines or vary specifications for top, bottom, right, and/or left borders.
Note: To set borders in an HTML report, Cascading Style Sheets must be on. Click Features from the Report menu. The Report Options dialog box opens. Ensure that an HTML styled report format is selected and verify that Cascading Style Sheets is checked.
Note: To drill down from the selected cell to another procedure or to a URL, click the Drill Down tab. For details, see Formatting Columns, Rows, and Cells.
Although certain options on the General tab are enabled when cell is the active object, these options will be applied to the entire column, not only to the selected cell. The Field Properties General tab options are available for the following fields in the Design Matrix.
The following example places a solid line of medium thickness around a cell in the RECAP row identified by the label TOTCASH.
One way to quickly create a row for this simple type of calculation is to place your cursor in a column that contains numeric data and highlight the values you want to add. Then click the Recap icon on the Design toolbar to create the RECAP row. A formula representing the sum of the highlighted values (identified by their row labels) is displayed in the new row, in the column that contained the values. For information about creating more complex RECAP expressions, see Performing Inter-Row Calculations.
The matrix appears as follows:
The Borders dialog box opens.
Note: To set borders in an HTML report, Cascading Style Sheets must be on. Click Features from the Report menu. The Report Options dialog box opens. Ensure that an HTML styled report format is selected and verify that Cascading Style Sheets is checked.
The output is:
The bold font style and solid border draw attention to the Total in the Amount column.
To create a condition:
The Field Properties dialog box opens at the Style tab.
The Condition List dialog box opens.
The Edit Condition dialog box opens.
The condition is added to the Condition List in the Condition List dialog box, from which it can be applied to one or more cells, as well as to columns or rows.
Tip: To create another condition, repeat steps 4 to 10.
The default condition name (for example, COND0001) appears in the Applying to Condition field box.
The condition you created appears in the Condition Rule box.
Note: To set borders in an HTML report, Cascading Style Sheets must be on. Click Features from the Report menu. The Report Options dialog box opens. Ensure that an HTML styled report format is selected and verify that Cascading Style Sheets is checked.
How to: |
The drill down feature enables you to add one or more layers of detail to a report by embedding procedures into the report. A drill down procedure can be:
After the base (summary) report appears in the browser, you can drill down to selected data a URL, or script (or procedure). For example, if you run a report on the country and models of all cars imported into the United States, and you have embedded the appropriate procedures in the report and defined the correct parameters, you can drill down on:
From either Report Painter or the Financial Report Painter, you can drill down from a column title and its data, or from the title only, or the data only.
In addition, from the Financial Report Painter you can drill down from a single cell in the matrix or from a row or row title.
These behaviors are invoked from the Field Properties Drill Down tab. The active object box indicates the matrix element from which the drill down will be implemented. The Drill-Down Definition indicates what you want to drill down on: a URL, a procedure, or one of the other supported options.
Notice that you can also define conditions that determine when to run an embedded drill-down procedure. For example, suppose you have embedded a procedure in the country column of the summary report, but you want your drill-down report to appear only for England. You can define a condition that enables the embedded drill down only when country equals England.
The mechanics of establishing a drill-down relationship are the same, regardless of the active object you choose.
For details about this process, see the Creating Reporting Applications With Developer Studio manual.
For a column, right-click the column title.
If you select Options from a column title, Column and Title is the active object. However, you can change the active object to column title or column data.
For a cell, right-click the cell, then choose Options from the context menu. The Field Properties dialog box opens. Click the Drill-Down tab.
If you select Options from a cell, Cell is the active object. However, you can change the active object to column and title, column title, column data, row title, or row data.
WebFOCUS |