community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

Dynamics 365 Business Central: How to hide the header and footer on a worksheet page to display more lines

Worksheet pages in Business Central can be extended to dynamically hide and show headers and footers, allowing users to view more journal lines. The post demonstrates using Boolean variables and page actions to toggle header and footer visibility, similar to how the Account Schedule page works.

post Dynamics 365 Lab

Yun Zhu · 2026-11-19 · 632 words · about 3 min

"There is actually a standard page we can use as a reference: Account Schedule (104, Worksheet)."

Key points

  • Worksheet pages display fewer lines than List pages because headers and footers consume space
  • Boolean variables control the visibility state of header and footer groups dynamically
  • Page actions with Visible properties allow users to toggle between Hide/Show states
  • The Account Schedule page serves as a standard reference implementation for this pattern

Quotes

  • “There is actually a standard page we can use as a reference: Account Schedule (104, Worksheet).” (Points developers to an existing pattern they can follow when implementing this feature)
  • “Instead of permanently hiding the header and footer, we can dynamically control their visibility.” (Clarifies the advantage of this approach - users retain flexibility rather than losing access to header/footer content)

AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

No source states these links: they share an object, a model read them, or a person found the same subject.

Context

  • Features: Hide/Show header actions, Hide/Show footer actions, Dynamic visibility control, Page extension modification, Boolean state management, Journal line display optimization

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.