Official Content

Defines the header lines to be printed at the top of each page.

Syntax

Header
       code
End

Where:

code
      Sequence of valid language commands.

Scope

Objects: Procedure
Generators: .NET .NET Framework, Java, RPG, Cobol, Ruby (up to GeneXus X Evolution 3), Visual Basic (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3),

Description

The first group in the Procedures default Source is the Header Group. The data within the Header level is printed at the beginning of each page of the report. The Header Group is optional hence, if no Header is specified, then no page header is printed.

A header can also be defined for every "For each" group defined in the Source. This causes the Header associated with the current For each group, and all Headers specified for all above nested groups, including the Main Header (the one defined for the Report/Procedure) to be printed after a page is ejected.

Samples

Suppose you want to define a report listing all your clients. In the Source of the Procedure, a main report/procedure Header is defined and another Header is defined for the For each - Endfor group which will scan over the Clients table when executed. For every page jump, both headers are printed.

Header
   Print Header
End

For each 
   Header
      Print TitleClient
   End
   Print InfoClient
Endfor

The following picture shows the layout:

List of Clients

See Also

Footer Command






Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant