Skip to main content

Events

The plug-in exposes one event that can be listened on document or on particular report.

  • Default callback [uc_default_callback] - triggered each time nested report is being shown or hidden. this.data is extended with additional information described below.
PropertyTypeDescription
this.data.afterRefreshBooleanWhen true the nested report is rendered after forced refresh.
this.data.animationRunningBooleanWhen true the nested report is the middle of animation (expanding or collapsing).
this.data.isCollapsedBooleanWhen true the nested report is collapsed.
this.data.isCollapsingBooleanWhen true the nested report is collapsing
this.data.isExpandedBooleanWhen true the nested report is expanded.
this.data.isExpandingBooleanWhen true the nested report is expanding
this.data.reportjQueryobject reference to parent report (1 level higher report)
this.data.triggeringElementjQueryobject reference to the element that was bound in dynamic action (eg. Selection Type = jQuery Selector)
this.data.triggeringTdjQueryobject reference to the cell from which nested report was performed.
this.data.parentObjectdescribes the parent element of the current nested report.
this.data.parent.elementjQueryobject Reference to parent element of the nested report (instance of the plug-in or native APEX report)
this.data.parent.levelNumberDescribes the level of nested report. First level starts with 1.
this.data.parent.typeStringWhen "nested" the parent element of nested report is instance of the plug-in. When "affectedElement" the parent element of nested report is native APEX component such as Classic Report or Interactive report.

Manual events

Default callback supports 4 predefined actions (refresh, expand all, collapse, collapse all) that can be executed using anchors with proper classes. Those actions work only when anchors with a given class are embedded in Extend default template or Custom template using Default Callback for a particular nested report.

Refresh nested report

The action forces the current nested report to be refreshed.

<a href="javascript: void(0)" class="nestedreport--refresh">Refresh</a>

Collapse nested report

The action forces the current nested report to be collapsed.

<a href="javascript: void(0)" class="nestedreport--slideup">Slide up</a>

Expand all nested reports

Action forces all next level nested reports to expand.

<a href="javascript: void(0)" class="nestedreport--expandAll">Expand all</a>

Collapse all expanded nested reports

Action forces all next level expanded nested report to collapse.

<a href="javascript: void(0)" class="nestedreport--slideup">Collapse all expanded</a>