Learning about Dynamic actions as part of Oracle Groundbreakers tour 2018 in Wellington. Once you start playing with DA key challenge will be sending your data to and from your Dynamic actions. In this presentation combined with the demo we explore some examples you will encounter in your everyday life.
You can download the application here -> https://apex.oracle.com/pls/apex/f?p=84111:13:105932325196457:::::
2. Wellington, 23 November 2018
Dynamic actions
APAC Groundbreakers TOUR 2018
lschilde.blogspot.com
@LinoSchilde
lschilde@apexRnD.co.nz
3. Who am I?
Since 2005 in Oracle development
APEX Blogger and enthusiast
NZ APEX meetup organizer
Conference speaker
AUSOUG APEX webinar series organizer
ODTUG 2018 Leadership academy graduate
6. Intro
Client side code that makes your applications ‘alive’
Declarative code without or little knowledge of JavaScript
Introduced in APEX 4.0
Event driven (for example by user actions)
They are your events manager where some components
publish events and some subscribe to it
Easy to learn
Expandable with plugins architecture
7. Material
By installing Sample dynamic action
By installing dynamic-actions.com
Or many available webinars and online materials
Check out ODTUG KScope materials or AUSOUG webinar series
8. Key notes
WHEN event is the trigger
(can be Browser, Framework or component initialted; example
dialog closes button is clicked)
ACTION
what does it need to do ie. set value; refresh region
AFFECTED ELEMENTS
what element does the action influences. It is optional usually
something like page item or a region
9. How to create them?
Select component
Give DA a name that describes action
Select an event
Optionally define affected element
Apply correct event scope
11. Debugging
To know what is happening click DEBUG on developer console
Then open Browser Console log
(Chrome more tools -> Dev tools)
You can see what happened and who triggered it
DA metadata and all necessary details
Open Network tab
12. Summary
Don’t abuse them – hard to debug and maintain
Consolidate if trigger on same events
Minimize custom JS code used
Apply server side security too to make sure user inputs are
controllled
- client side code that makes your applications live
- declarative without or little knowledge of Javascript
- you can still use custom JS if more prone to it
- Introduced in APEX 4.0
- event driven (user actions )
30+ events
21 native actions
- can be extended by plugins
- different component types can have events that can be exposed with plugin architecture
- you can debug it in console with same switch for DEBUG what and where firing
- easy to learn
webinars -> kscope/ausoug
Anything user can do is browser event
framework - After refresh before etc...
component - Interactive gird
Refresh and plsql are special as they do requests to the servers
Event listener - is part of dynamic actions;
Attaches listener to an event
event delegation; to element higher up
event bubling