Anchoring header in APEX's Classic Report

Anchoring header in APEX's Classic Report

Navigating vast tables can be daunting, but there's a trick to keep your headers anchored at the top. While this is a breeze in Interactive Reports and Grids, Classic Report regions and custom HTML tables require a workaround.

Enter APEX's JavaScript arsenal: the Sticky Table Header and Sticky Widget. For Classic Report Regions, initiate a "Page Load" dynamic action. Then, cast this JavaScript:

var reg = $(this.triggeringElement);
reg.setTableHeadersAsFixed();
reg.find('.js-stickyTableHeader').stickyWidget();

Ensure "Fire on Initialization" is active.

You will also need to include APEX's JS library in the JavaScript File URL's section:

#IMAGE_PREFIX#libraries/apex/#MIN_DIRECTORY#widget.stickyTableHeader#MIN#.js?v=#APEX_VERSION#

With this, your APEX tables will always guide your users seamlessly.