Nested reports

Oracle APEX dynamic action plugin v1.0

The plugin is dynamic action plugin implementing nested reports within APEX classic reports. Scope of data, data appearance and behavior is customizable within the plugin attributes.

Features at a Glance

Compatibility with Oracle APEX

The plugin is compatible with Oracle APEX starting from version 5.0.

Browser support

The plugin was tested under three major browsers: Internet Explorer 10+, Firefox, Chrome.

Features

  • Fetched data is defined as SQL query
  • Fetched rows can be limited by values presented in cells within classic report
  • The plugin can be bound to TD, TR and jQuery selector within classic report
  • The plugin supports four operating modes (default callback, default template, custom template, custom callback)
  • Custom template (Mustache library)
  • Default callback behavior and appearance is customizable with 8 attributes (cache results, collapse expanded row, max height, slide animation, loading indicator, border and background colors)
  • Support for custom JavaScript to embed results within APEX page

Versions

This is the first version of the plugin. No version history is available.

Roadmap

  • Plugin events on collapsing and expanding row (default callback)
  • Support for Interactive report 
  • More attributes to customize

License

This plugin is currently available for use in all personal or commercial projects under MIT license. License has been included with this software.

Legal Disclaimer

The program(s) and/or file(s) are supplied as is. The author disclaims all warranties, expressed or implied, including, without limitation, the warranties of merchantability and of fitness for any purpose. The author takes no responsibility, assumes no liability for damages, direct or consequential, which may result from the use of these program(s) and/or file(s).

Live demo

Demo presents three examples of different configuration of the plugin. Examples show possible configuration modes: default template, custom template, custom callback.

  • click on the icon to display ordered items list
  • click on the "Customer" cell to display customer detailed information

Default template

Multiple rows can be expanded at the same time. Fetched data is rendered with default template (table).

Details
John Dulles108552015-07-15
William Hartsfield54352015-07-26
William Hartsfield32652015-08-31
Fiorello LaGuardia54352015-07-28
Edward Logan74752015-08-17
Eugene Bradley32802015-07-01
Frank OHare44602015-08-25
Eugene Bradley32802015-09-03
Albert Lambert54202015-08-07
Edward Logan45052015-08-12

Custom template

Only one row can be expanded at the same time - expanding row results in collapsing expanded rows. Fetched data are rendered with custom template (Mustache).

To learn more about Mustache templates visit Mustache documentation.

Details
John Dulles108552015-07-15
William Hartsfield54352015-07-26
William Hartsfield32652015-08-31
Fiorello LaGuardia54352015-07-28
Edward Logan74752015-08-17
Eugene Bradley32802015-07-01
Frank OHare44602015-08-25
Eugene Bradley32802015-09-03
Albert Lambert54202015-08-07
Edward Logan45052015-08-12

Custom callback

Fetched data are embedded in bootstrap popover plugin. Bootstrap popover functionality is provided as custom JavaScript code within the plugin. Fetched data are rendered with custom template similar to template in Custom template example.

Details
John Dulles108552015-07-15
William Hartsfield54352015-07-26
William Hartsfield32652015-08-31
Fiorello LaGuardia54352015-07-28
Edward Logan74752015-08-17
Eugene Bradley32802015-07-01
Frank OHare44602015-08-25
Eugene Bradley32802015-09-03
Albert Lambert54202015-08-07
Edward Logan45052015-08-12

Download

Please click on the button below

Installation guide

After downloading and unpacking the zip archive please proceed with following steps:

  1. Select application you want to install plugin
  2. Go to Shared Components > Plugin-ins
  3. Click import button
  4. Choose installation file and proceed with installation steps.

Usage guide

  1. Create classic report
  2. Create dynamic action
    1. When = Click
    2. jQuery Selector = td[headers="COLUMN_NAME"]
  3. Create action "Pretius APEX Nested reports [Plug-In]"
    1. Customize settings according to your needs
    2. Set affected Elements to the report created in step 1
  4. Test the plugin
 

About the author


Bartosz Ostrowski

@bostrowsk1
bostrowski@pretius.com

Oracle Application Express, PL/SQL and Frontend developer. IT consultant experienced in developing database and web applications using Oracle Application Express.
Oracle APEX enthusiast, plugin developer and active community member.

release 1.0 Set Screen Reader Mode On