Use
You use the Events tab to define events at the beginning and end of a node (folder, complex paragraph, table, loop), at which you display additional contents.
You can display the header at the beginning of the paragraph and/or after a page break. You can display the footer before a page break and/or at the end of the paragraph. For the footer, you must specify a height to tell the composer how much space to reserve for the footer.

This disadvantage of having to specify the footer height is compensated by the fact that you can use the footer (unlike the footer of SAPscript forms) to display subtotals, since the footer is processed only at the moment the page break occurs.
The Events tab is especially useful for displaying table headings and totals lines.
Result
If header and footer are active, in the tree two event nodes appear within the paragraph. Under each node you can include, for example, texts for the heading or the footer line (they can even have their own line type specified in the output options of the texts).
Constraints
You cannot nest events. After you defined a header or footer for a paragraph, no other subordinate paragraph is allowed to define its own header or footer. In addition, if you use both header and footer, you must always define these areas in the same paragraph. The Form Builder checks these conditions.