Skip to Main Content

Breadcrumb

 

Examples

Manual Events

This example presents 2 levels of nested reports created on top of the DEPT table.

The first level uses the default template with custom HTML (see Extend default template region) which uses built-in classes (see Built-in classes) that affect the nested report.

The second level uses a custom template (see Custom template region) which is bound with an APEX modal page through the Edit button. The modal page allows users to change employee details, and after saving the changes the 2nd nested report is refreshed using the dialog close event triggered on the edit button. The modal page URL is generated using the second level SQL Query.


Nested Report

10ACCOUNTINGNEW YORK
20RESEARCHDALLAS
30SALESCHICAGO
40OPERATIONSBOSTON
80kkkppp
90pop-
60Tech-
70--

Drilldown

This example shows how one dynamic action can drill-down into hierarchical data. The dynamic action is listening to the Click event on jQuery selector .levelsGetInferiors which is a class of the anchor .

Example

7839KINGPRESIDENT1800-0
7839KINGPRESIDENT1800-0
7839KINGPRESIDENT1800-0
7839KINGPRESIDENT1800-0
7839KINGPRESIDENT1800-0
7839KINGPRESIDENT1800-0
7839KINGPRESIDENT1800-0
7839KINGPRESIDENT1800-0
7839KINGPRESIDENT1800-0
7839KINGPRESIDENT1800-0
7839KINGPRESIDENT1800-0
7839KINGPRESIDENT1800-0
7839KINGPRESIDENT1800-0
7839KINGPRESIDENT1800-0

Interactive Report

IR

Dname: ACCOUNTING
DetailsEmpnoEnameJobMgrHiredateSalCommDeptnoLoc
7782CLARKMANAGER78396/9/19812000-10NEW YORK
7934MILLERCLERK77821/23/19821300-10NEW YORK
7839KINGPRESIDENT-11/17/19811800-10NEW YORK
Dname: RESEARCH
DetailsEmpnoEnameJobMgrHiredateSalCommDeptnoLoc
7902FORDANALYST756612/3/19811400-20DALLAS
7788SCOTTANALYST75664/19/19871400-20DALLAS
7566JONESMANAGER78394/2/19811800-20DALLAS
7369SMITHCLERK790212/17/19801300-20DALLAS
7876ADAMSCLERK77885/23/19871100-20DALLAS
Dname: SALES
DetailsEmpnoEnameJobMgrHiredateSalCommDeptnoLoc
7521WARDSALESMAN76982/22/1981125050030CHICAGO
7654MARTINSALESMAN76989/28/19811250140030CHICAGO
7844TURNERSALESMAN76989/8/19811500030CHICAGO
7900JAMESCLERK769812/3/1981950-30CHICAGO
7499ALLENSALESMAN76982/20/1981130030030CHICAGO
7698BLAKEMANAGER78395/1/19812300-30CHICAGO
  • 1 - 14

Plug-in Events

Whenever United Codes Nested Reports shows, hides or refreshes a nested report it triggers the Default Callback [United Codes Nested Reports] event. This event can be bound with a dynamic actions on the document (Selection Type set to Javascript Expression = document) to listen tp all nested report events. Or, the event can be bound to a particular report (Selection Type set to Region) to listen only on specific report events.

In this example, a dynamic action changes the look of the triggering element icon and adds animation. The JavaScript used in the dynamic action "Execute Javascript Code" can be viewed in the Example event handler region.

Event data describes the state of the currently active nested report. Event data object can be referenced by this.data within the Execute JavaScript Code True Action.

The event data object is described below.


this.data

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.parentObjectdescribes the parent element of the current nested report.
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.parent.elementjQueryobject Reference to parent element of the nested report (instance of the plugin 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 plugin. When "affectedElement" the parent element of nested report is native APEX component such as Classic Report or Interactive report.

Report

ACCOUNTINGNEW YORK
RESEARCHDALLAS
SALESCHICAGO
OPERATIONSBOSTON
kkkppp
pop-
Tech-
--