Skip to main content

Dynamic Headers and Footers

An introduction to Dynamic Headers and Footers

A
Written by Ashok P
Updated over a month ago

Dynamic Headers and Footers allow reports to have different grouping options, e.g., "By Location" or "By Location By System."

definitions.png

The highlighted area in the above image shows the report definitions.

Reports can have up to three Dynamic Headers and Footers, but some reports were only coded to have one or two Dynamic Groups.

Proposal reports are the only ones coded to have three levels, as shown below.

proposal dynamic groups.jpg

Naming is key here. When named specifically, a Group Header and Footer become dynamic.

We have background coding that looks for headers and footers with these specific names: GrpDynamicHeader1, GrpDynamicHeader2, GrpDynamicHeader3, GrpDynamicFooter1, GrpDynamicFooter2, and GrpDynamicFooter3.

name field in properties window header.jpg

The Text Box controls must also be named specifically.

In the Headers, there are two fields: one that displays the name of the chosen grouping and one that displays the description field for the grouping.

name field in properties window.jpg

We have background coding that looks for text boxes with these specific names in each respective dynamic grouping: txtDynamicHeader1, txtDynamicDesc1, txtDynamicHeader2, txtDynamicDesc2, txtDynamicHeader3, and txtDynamicDesc3.

name field in properties window desc.jpg

The description text box only applies to location or system descriptions.

location description.jpg

In the example below, a Proposal with Images report was run "By System By Location" and displays the description for just the location.

File:SIX_Guide/008_Reports/004_Report_Designer/001_Standard_Report_Designer/Sections/Dynamic_Headers_Footers/group_desc_example.jpg

In the Footers, there is one field that displays the name of the grouping.

name field in properties window footer.jpg

We have background coding that looks for text boxes with these specific names in each respective dynamic grouping: txtDynamicFooter1, txtDynamicFooter2, txtDynamicFooter3.

In the example below, a Proposal with Images report was run "By Location By System."

group footer example 2.jpg
Did this answer your question?