Previous Topic: Report Parameters FillinNext Topic: Detail Definition Fillin


Heading/Footing Definition Fillin

The report Heading/Footing definition fill‑in specifies a more elaborate report page heading or footing than can be defined on the report Parameters fill‑in. The Heading/Footing fill‑in is optional and is shown in the following screen.

Definitions specified with the Heading/Footing fill‑in override those specified on the report Parameters fill‑in. For example, the standard control break heading parameter on the report Parameters fill‑in is ignored for a break level if a <<BH>> label is specified on the Heading/Footing fill‑in.

You can use field names, literals, functions, and arithmetic expressions as part of a heading or footing. The position or location of the heading or footing is also specified on this fill‑in.

You can define the following types of headings and footings on the Heading fill‑in:

=> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ IDEAL : RPT HEADING/FOOTING RPT CUSTRPT (001) TEST SYS: DOC FILL‑IN Field Name, Literal, Function, Column Command or Arithmetic Expression Wid Tab Edit Pattern ‑‑‑‑‑‑ ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑ ‑‑ ‑‑‑ ‑‑‑‑‑‑‑‑‑‑‑‑‑ ====== ==================== T O P ===================== == === ============= ______ ________________________________________________ __ ___ _____________ ______ ________________________________________________ __ ___ _____________ ______ ________________________________________________ __ ___ _____________ . . . ______ ________________________________________________ __ ___ _____________ ====== ===================== B O T T O M ============== == === =============

A series of literals and field names specifies a heading or footing on the report Heading fill‑in. Although you enter the pieces of the heading or footing vertically on the fill‑in, they are arranged horizontally across the top of each page of the report. A heading wider than the report width wraps around to the next line.

To define a heading or footing, enter the information in the following fields on the Heading fill‑in:

Command

An area where the user can enter CA Ideal editing line commands. You can position the command area on the right or left of the screen using the SET EDIT MARGIN command. For more information, see the Command Reference Guide.

Field Name, Literal, Function, or Arithmetic Expression

The group‑identifier, field name, literal, function, or arithmetic expression used as a part of the heading or footing. This area must be left blank if Lnn is specified in the TAB column.

To modify the specification, the ERASE EOF key or the DELETE key can delete this value. When a value in this field is deleted, CA Ideal deletes corresponding options specified in that line.

Group Identifiers

Identify all headings and footings with a group label, which indicates the function of the heading or footing in the report. Valid group identifiers are:

Field names

Field names must be the names of fields in dataviews, panels, working data, or parameters. You can continue field names for a total of up to three lines by terminating the name with a semicolon. For more information, see the section Considerations for Continuation later in this chapter.

Literals

You must enclose literals in single quotes. You can specify literals on consecutive lines with a TAB specification of 0 or 1. They are concatenated in the page heading. If spaces are required between the two literals, you can use the TAB specification to provide them or include them in the quotes. You cannot continue a heading literal with a semicolon.

Functions

Report functions entered in a heading or footing return a value when the heading or footing is produced. The following report functions are available:

The $TOT function provides the same value as the TOT function on the Detail fill‑in.

The value entered for field in any of the above functions must be a unique name or label on a line in the Detail fill‑in. If the field name is a qualified name (for example, EMPLOYEE.SALARY) in the Detail definition, then it must also be qualified when used with these functions in either the Heading or Footing definition. You can continue the function specification on a total of up to three lines by ending each line except the last with a semicolon.

Arithmetic Expressions

You can specify an arithmetic expression with or without a label. However, you cannot use the value computed for the expression as the operand of a report function if the expression is not labeled. You can continue an expression for a total of up to three lines by ending the Field Name entry in each line except the last with a semicolon.

Considerations for Continuation:
Column

Specifies the width of the column and its placement on the report line.

Width

A number from 0 through 99 that specifies the width of the column. An entry here overrides the default column width. If no value is specified here (the default), the width is equal to the longest of the following:

If the field value is longer than the space allotted, it is truncated. Alphanumeric fields are truncated from the right. Numeric fields are truncated from the left.

If an alphanumeric function is specified, a WIDTH specification is required. See the PDL chapter in the Programming Reference Guide for a definition of terms.

Tab

Specifies the column and line where this field in the heading or footing starts. If omitted, the Spacing Between Columns option in the report Parameters fill‑in determines the spacing. You can use the following entries:

Lnn must be a separate tab entry with all other columns blank. In the following example, it is necessary to leave the second line in the field name column blank because the TAB value is L05.

FIELD NAME   ...   TAB
X                   50
                   L05
Y                   50

Leaving the field name blank when Lnn is specified in the TAB column is useful for skipping extra lines without producing a field on the report in that position.

Edit Pattern

Specifies an override to the default edit pattern for the entry. Refer to the edit pattern description in the section titled Detail Definition Fillin later in this chapter. You can continue the edit pattern for a total of up to three lines by ending the field name column with a semicolon. You can also specify date patterns here; however, $RPT‑DATE uses the date format specified in the Parameters fill‑in. Be sure that the edit pattern is large enough to accommodate the largest possible value and provide a sign if negative values are possible.