interactive reports in apex

38
Interac(ve Reports Watch out for the Pi5alls! 25.03.2015 APEX World 2015 Peter Raganitsch

Upload: phamminh

Post on 14-Feb-2017

247 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Interactive Reports in APEX

Interac(ve  Reports  Watch  out  for  the  Pi5alls!

25.03.2015 APEX World 2015 Peter Raganitsch

Page 2: Interactive Reports in APEX

Peter Raganitsch

[email protected]://www.oracle-and-apex.com

@PeterRaganitsch

Page 3: Interactive Reports in APEX

Interactive Report

Page 4: Interactive Reports in APEX

Sample Reporting

• Internet oder Intranet

• -> Bereiche ohne Login

Page 5: Interactive Reports in APEX

Classic Report

Page 6: Interactive Reports in APEX

Interactive Report

Page 7: Interactive Reports in APEX

Classic vs. Interactive

When creating a database application, you can include two types of reports: an interactive report or a classic report. The

main difference between these two report types is that interactive reports enable the user to customize the appearance of the data through searching, filtering, sorting, column selection,

highlighting, and other data manipulations.

Page 8: Interactive Reports in APEX

Classic vs. Interactive

When creating a database application, you can include two types of reports: an interactive report or a classic report. The

main difference between these two report types is that interactive reports enable the user to customize the appearance of the data through searching, filtering, sorting, column selection,

highlighting, and other data manipulations.

Page 9: Interactive Reports in APEX

Features

• Search Bar

• Actions Menu

• Column Header Menu

• URL Linking

Page 10: Interactive Reports in APEX

Search Bar

• Search all

• Search Column

• Predefined Reports

• Icon/Detail/List View

• Reset

Page 11: Interactive Reports in APEX

Actions Menu• Select Columns

• Filter

• Rows

• Format

• Flashback

• Reset

• Save Report

• Help

• Download

• Subscription

Page 12: Interactive Reports in APEX

Format Options

• Sort

• Control Break

• Highlight

• Compute

• Aggregate

• Chart

• Group By

Page 13: Interactive Reports in APEX

Column Header Menu

• Sort

• Hide

• Control Break

• Filter by Selection

Page 14: Interactive Reports in APEX

URL Linking

• Set Filters

• Show saved Report

• Reset Report

f?p=<app>:<page>:<session>:<report>:<debug>:<clear-cache>:<filter>:<value>

https://docs.oracle.com/cd/E37097_01/doc.42/e35125/bldapp_rpt_int.htm#HTMDB28370

Page 15: Interactive Reports in APEX

URL: Set Filter

• filter = IR<operator>_<column_alias>

• EQ = equal

• LT = less than

• …

• Example: IRLT_CREDIT_LIMIT

f?p=<app>:<page>:<session>::<debug>::<filter>:<value>

https://docs.oracle.com/cd/E37097_01/doc.42/e35125/bldapp_rpt_int.htm#HTMDB25372

Page 16: Interactive Reports in APEX

URL: Show saved Report

• report = IR_REPORT_<report-alias>

• Example: IR_REPORT_1234

f?p=<app>:<page>:<session>:<report>:<debug>

https://docs.oracle.com/cd/E37097_01/doc.42/e35125/bldapp_rpt_int.htm#HTMDB25372

Page 17: Interactive Reports in APEX

URL: Reset Report

• CIR = clear Interactive Report

• RIR = reset Interactive Report

• RP = Reset Pagination

f?p=<app>:<page>:<session>::<debug>:<clear-cache>

https://docs.oracle.com/cd/E37097_01/doc.42/e35125/bldapp_rpt_int.htm#HTMDB25372

Page 18: Interactive Reports in APEX

Download

• CSV

• PDF

• Druck

Default Options

BI Publisher

FOP, BI Publisher, APEX Listener / ORDS

Page 19: Interactive Reports in APEX

Query

Page 20: Interactive Reports in APEX

Query

• What happens internally?

• How is the query transformed?

• Which AJAX Calls are executed?

Page 21: Interactive Reports in APEX

Get AJAX Call Queries

• Was passiert intern?

• Welche Abfrage wird ausgeführt?

• Welche AJAX Calls werden ausgeführt?

Page 22: Interactive Reports in APEX

Settings

• Wichtige Einstellungen

• Performance relevante Einstellungen

Page 23: Interactive Reports in APEX

Styling

Page 24: Interactive Reports in APEX

Styling

• CSS Overrides

• Change labels via Text Messages

• https://docs.oracle.com/cd/E37097_01/doc.42/e35125/global_messages.htm#BABEGGHA

Page 25: Interactive Reports in APEX

API

• Filter setzen

• Aktuelle Query auslesen

Page 26: Interactive Reports in APEX

API

• set Filters

• get current Query incl. all Filters !

• APEX_IR

Page 27: Interactive Reports in APEX

Extensions

• Plugins

• Moritz Klein

• Pavel Glebov

• Matt Nolan

Page 28: Interactive Reports in APEX

APEX IR XLSX

• Plugins

• Moritz Klein

• Pavel Glebov

• Matt Nolan

Page 29: Interactive Reports in APEX

IR to MSExcel

• Plugins

• Moritz Klein

• Pavel Glebov

• Matt Nolan

Page 30: Interactive Reports in APEX

Column/Header Freeze

• Plugins

• Moritz Klein

• Pavel Glebov

• Matt Nolan

Page 31: Interactive Reports in APEX

APEX 5

• Was wird sich mit APEX 5 ändern?

• Multiple IR’s

• Zugriff auf JS Object

• URL-Linking?

Page 32: Interactive Reports in APEX

Multiple IR’s per Page

Page 33: Interactive Reports in APEX

Modal Dialogs

Page 34: Interactive Reports in APEX

Pivot

Page 35: Interactive Reports in APEX

8x Group By

Page 36: Interactive Reports in APEX

new JS Objects

• jQuery(“#<report-id>_ir”).data("apex-interactiveReport").refresh()

• jQuery("#<report-id>_ir").data("apex-interactiveReport").option("regionId")

• jQuery("#<report-id>_ir").data("apex-interactiveReport").option("currentRowsPerPage","5")

Page 37: Interactive Reports in APEX

JS-Override

jQuery(“#R511021255076588904_ir")

.data(“apex-interactiveReport")

.refresh = function() {

console.log(‘tataaa');

this._pull();

}

Page 38: Interactive Reports in APEX

Peter Raganitsch

[email protected]://www.oracle-and-apex.com

@PeterRaganitsch

Find me at the FOEX Booth!