grid essentials - amazon s3 · grid essentials: apex 5.1 interactive grid karen cannell ... •...

88
Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell [email protected] TH Technology

Upload: others

Post on 20-May-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

Grid Essentials:

APEX 5.1 Interactive Grid

Karen [email protected]

TH Technology

Page 2: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

About Me …• Mechanical/SW Engineer - Analyzed, designed,

developed, converted, upgraded, enhanced legacy & database applications for 30+ years

• Building Web/APEX applications for government, medical, engineering industries since HTMLDB beginnings

• Leveraging Oracle 10g,11g,12c suite of tools

• Editor Emeritus, ODTUG Technical Journal

• Oracle Ace Associate

• APress Author

• ODTUG Director

Page 3: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

About You …

• Oracle Technology ?

• Years w APEX ?

• APEX Versions ?

• Interactive Reports and Tabular Forms ?

• Customizations ?

Biggest Gripes?

Page 4: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Agenda

• Evolution

• Essentials

• Build/Upgrade ~Features ~ Oddities

• Extras (Advanced)

• JavaScript Customizations

• Wrapup• Pros/Cons ~ Questions

Page 5: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

In the Sandbox …

Page 6: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Out of the Sandbox

Page 7: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Interactive Grid == Better Sandbox

Page 8: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

Interactive Grid:

to BuildEvolution

Page 9: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Interactive Grid

(Interactive Report or Tab Form)

+ <All the Features You Ever Wanted>(Thank You APEX Team!)

-----------------------------------------Interactive Grid

Page 10: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Evolution: Tabular Forms• APEX 3 – Bare Bones

• APEX 4.0 • RadioGroup, PopUp LOV, Simple CB

• Declarative Validations

• APEX 4.1 • :COLUMN References

• Improved Error Handling

• APEX 4.2, 5.0• No Major TF enhancements

• Major IR Rewrite

• APEX 5.1• Editable Interactive Grid (a Plugin)

Beginning of Shift

All Widgets

Page 11: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Evolution: Interactive Reports

• APEX 4.0• The New Big Thing

• APEX 4.1• More Column Types• Improved Group By, Add PIVOT

• APEX 5.0• Reengineered – CSS and JS, Widgets

• APEX 5.1 • Interactive Grid – JQuery Widgets

Shift to Widgets

All Widgets

Page 12: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Direction

Interactive Report

Tabular Form

Interactive GridNow

Future

Page 13: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

IGrid Architecture

Interactive Grid – Under the Hood

J Snyders

http://hardlikesoftware.com/weblog/2016/06/08/interactive-grid-under-the-hood/

Page 14: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

Interactive Report

• Generates HTML on Server, part of Page

• Data Returned w UI Markup

• One Big JS Module

Interactive Grid

• HTML Renders on Client

• Data/Edits from Server via JSON

• Collection of Widgets

Page 15: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

Interactive Report

• Collections (pre 5.0)

• Browser Decides Column Width

table-layout: auto;

Interactive Grid

• Model

• Each Column is an “Item”

• Fixed Table Layout

Page 16: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

Interactive Grid:

to BuildEssentials

Build/Upgrade

Features Oddities

Page 17: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Interactive Report – Still There

Page 18: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Tabular Forms == Legacy

Page 19: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Interactive Grid

• Add image here – looks pretty much the same

Page 20: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

Editable Grid:

to Build

Page 21: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Editable

Page 22: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Editable Interactive Grid

Page 23: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

If Editable

• Set a PK

• Set Reload on Submit Only On Success

Page 24: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Page 25: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Edit: Set One Column as a Primary Key

Page 26: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Page 27: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Edit: Page Reload on Submit

Page 28: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Row Selector

Page 29: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Row Action Menu

Page 30: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

More Grid Details: to Build

Column Width,

(No)Stretch,

Master-Detail, Casc.

LOV, 32K Limit

Page 31: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Column Widths

• Appearance “Width” Property Does Not Set Column Width

• Drag and Drop then Report Save

• Columns• Resize• Reorder• Minimum Width

• Min Width vs Current Width

Page 32: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build
Page 33: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

NoStretch – APEX 5.1.1

• JS to Set Per Column

In Advanced JavaScript for the Column

function(config) {

config.defaultGridColumnOptions = {

noStretch: true

};

return config;

}

Page 34: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

NoStretch – APEX 5.1.1

• JS to Set Per Grid (All Columns)

In Advanced JavaScript for the Grid

Page 35: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Declarable in

APEX 5.2 ?

Page 36: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Master-Detail

• Create Master Grid

• Create Detail Grid

• Set PKs for Both

• On Detail Grid, Link via Master Region

• Disable Detail Grid Save Button

Page 37: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Cascading LOV

• Just Like Page Item to Page Item

Page 38: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

SELECT

apex_item.checkbox (30,

seq_id,

'onclick="highlight_row(this,' || seq_id || ')"',

NULL,

':',

'f30_' || LPAD (seq_id, 4, '0') ) delete_checkbox,

apex_item.hidden (31, seq_id)

|| apex_item.select_list_from_query

(32,

c001,

'SELECT dname d, ' || 'deptno r FROM

eba_demo_tf_dept',

'style="width:220px" '

|| 'onchange="f_set_casc_sel_list_item(this,'

|| 'f33_'

|| LPAD (seq_id, 4, '0')

|| ')"',

'YES',

'0',

'- Select Department -',

'f32_' || LPAD (seq_id, 4, '0'),

NULL,

'NO' ) deptno,

apex_item.select_list_from_query (33,

c002,

'SELECT ename d, '

|| 'empno r FROM eba_demo_tf_emp '

|| 'WHERE deptno = '

|| c001,

'style="width:220px"',

'YES',

'0',

'- Select Employee ('

|| (SELECT COUNT (*)

FROM eba_demo_tf_emp

WHERE deptno = c001)

|| ') -',

'f33_' || LPAD (seq_id, 4, '0'),

NULL,

'NO' ) employee

FROM apex_collections

WHERE collection_name = 'DEPT_EMP'

UNION ALL

SELECT apex_item.checkbox

(30,

NULL,

'onclick="highlight_row(this,'

|| TO_NUMBER (9900 + LEVEL)

|| ')"',

NULL,

':',

'f30_' || LPAD (9900 + LEVEL, 4, '0') ) delete_checkbox,

apex_item.hidden (31, NULL)

|| apex_item.select_list_from_query

(32,

0,

'SELECT dname d, ' || 'deptno r FROM eba_demo_tf_dept',

'style="width:220px" '

|| 'onchange="f_set_casc_sel_list_item(this,'

|| 'f33_'

|| LPAD (9900 + LEVEL, 4, '0')

|| ')"',

'YES',

'0',

'- Select Department -',

'f32_' || LPAD (9900 + LEVEL, 4, '0'),

NULL,

'NO' ) deptno,

apex_item.select_list_from_query

(33,

NULL,

'SELECT ename d, '

|| 'empno r FROM eba_demo_tf_emp '

|| 'WHERE deptno = '

|| 0,

'style="width:220px"',

'YES',

'0',

'- Select Employee (0) -',

'f33_'

|| LPAD (9900 + LEVEL, 4, '0'),

NULL,

'NO'

) employee

FROM DUAL

WHERE :request = 'ADD_ROWS'

CONNECT BY LEVEL = 2

Before (APEX 4.2)

Page 39: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

After (APEX 5.1+)

Page 40: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

32K Row Limit

footer

Page 41: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Dynamic Action

• Just Like On a Page Item

• Conditions/Action Reference Any Column In Row

• Cannot Reference Element in Other Rows

Page 42: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Validations (Overview!)

• :COLUMN_NAME References• Similar to 4.2 Tab Form• On Submit

• Dynamic Actions• Column Option

• HTML5 Form Validation• Required • Pattern – Min, Max (Numbers)

• In Custom Attributes

Page 43: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Page 44: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

Validation – Dyn Action JS

Page 45: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

footer

id

validity

attribute

Page 46: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

ids

validity

attribute

Page 47: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

footer

Page 48: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Access Grid, Model, Record…

Page 49: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

Upgrading to Grid: to Build

IR to Grid,

Tabular Form

to Grid

Page 50: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Upgrade Interactive Reports?

• Change Region Type

• Standard, No Frills Users YES

• Considerations• Pivot• Computed• Customized Logic• Drills To IRs

HOW

WHEN

HOW

Page 51: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Upgrade Tabular Forms?

• Upgrade Utility• May Need Rework

• Standard YES

• Non-Standard• Maintain vs Rebuild

• Rebuild is Relatively Quick

HOW

WHEN

Page 52: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

Interactive Grid:

Extrasto Build

Advanced:

JS Customizations for Menus,

Toolbars and More

Page 53: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Customizations

• Advanced JavaScript Code• Grid Grid Menus• Column Column Menu

(Most of the Time…)

• Read Widget JS Files to Learn What is Possible• Read Hardlikesoftware.com

No Longer PL/SQL Collections ~ Now JavaScript

Page 54: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Grid Plugins

• Extend IG Toolbarhttps://apex.oracle.com/pls/apex/f?p=apexbyg:extendigtoolbar

Page 55: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Note: APEX 5.1.1 PatchJohn Snyders ~ Interactive Grid API Improvements

http://hardlikesoftware.com/weblog/2017/03/28/apex-interactive-grid-api-improvements-in-5-1-1/

• 5.1.1 IGrid APIs are DIFFERENT from APEX 5.1.0 IGrid APIs …

Current Version: 5.1.3

Expect the APIs to Update

Page 56: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build
Page 57: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build
Page 58: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

So What (Else) Can I Do ?

From the JavaScript console type:

apex.region(“igrid_id").widget().interactiveGrid("option","config")

Page 59: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Page 60: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Customization Examples

• Change Toolbar

• Change Column Heading Menu

• Change RowAction Menu

• Change Toolbar Actions Menu

• “Global” Settings

Page 61: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Change Toolbar

Page 62: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Change Toolbar Goes in Grid

Advanced

JavaScript

Page 63: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Combine Stuff

Page 64: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Change Toolbar

Page 65: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Change Column Heading Menu

Page 66: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Change Column Heading Menu

Goes in Column

Advanced

JavaScript

Page 67: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Change Column Heading Menu

Page 68: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Change RowAction Menu

Page 69: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Change RowAction MenuGoes in Page

JavaScript

Page 70: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Access the Model …

Page 71: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Change Toolbar Actions Menu

Page 72: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Change Toolbar Actions Menu

Goes in Grid

Advanced

JavaScript

Page 73: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

“Global” Settings

• JS Function in JS File

• Include File

• Reference JS Function in Advanced JavaScript Code

• Add Classes on Grids

Page 74: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

• << code example>>

• << Demo app w common settings >>

Page 75: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build
Page 76: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Page 77: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

gReport.search Equivalent

Page 78: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

Interactive Grid:

Wrapupto Build

Pros, Cons,

Discussion

Page 79: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Upgrade or Not?

• IR Considerations• Pivot

• Customized Logic

• Drills To IRs

• Tabular Form Considerations• Customizations

Page 80: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Best to Rebuild When …

• Low/Reasonable Volume of IRs/Tabular Forms to Upgrade

• All Features Have a Declarative Equivalent in Interactive Grid

No Sense to Upgrade to Make Extensive Customizations

Page 81: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Prototype !

Test!

Page 82: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Page 83: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

There is Much More ….

• Charts

• Pagination Options

• Client-Side Validation

• Protected Rows

• Icon View

• Detail View

• More Coming!

Page 84: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Challenge

• Sample Interactive Grid App

• IG Cookbookhttp://www.hardlikesoftware.com

• Read the JS Widget Code<apex_install_dir>/images/libraries/apex

PLAY

Homework

Page 85: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

Comments? Questions?Thank You

Karen [email protected]

Page 86: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Resources• Sample Interactive Grids

APEX 5.1 Sample Application, Editing section

• Interactive Grids Under the Hood

http://hardlikesoftware.com/weblog/2016/06/08/interactive-grid-under-the-hood/

• Interactive Grid Column Widthshttp://hardlikesoftware.com/weblog/2017/01/06/interactive-grid-column-

widths/

• How to Hack Interactive Grids, Parts I thru IV http://hardlikesoftware.com/weblog/2017/01/18/how-to-hack-apex-interactive-grid-part-1/

• APEX: Updating Interactive Grid Cells https://ruepprich.wordpress.com/2017/03/09/apex-updating-interactive-grid-cells/

Page 87: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

TH Technology

Resources, cont’d• APEX Client-Side Validation

http://hardlikesoftware.com/weblog/2017/05/10/apex-client-side-validation/#more-615

• Interactive Grid Extend Toolbar Pluginhttps://github.com/mgoricki/apex-plugin-extend-ig-toolbar

• APEX Grid Preventing Lost Updateshttp://www.explorer.uk.com/apex-interactive-grid-preventing-

lost-updates-record-locking/

Page 88: Grid Essentials - Amazon S3 · Grid Essentials: APEX 5.1 Interactive Grid Karen Cannell ... • Reengineered –CSS and JS, Widgets ... Layout. Interactive Grid: Essentials to Build

Thank You

Evaluations Please!

Karen [email protected]