Practic Pr al actic Dynamic Actions Intro Jorge Rimblas 1. 1

Similar documents
Senior APEX rimblas.com/blog. Co-author of "Expert Oracle Application Express, 2nd Edition" with "Themes & Templates" chapter

1 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

Oracle Application Express

Rapid Application Development with APEX 5.0

SharePoint List Booster Features

I, J, K. Eclipse, 156

Iframes when necessity calls for them

Manipulating Database Objects

Application Express Dynamic Duo

Apex 5.1 Interactive Grid and Other New features

Database Developers Forum APEX

Custom Contact Forms Magento 2 Extension

Oracle Forms and Oracle APEX The Odd Couple

A Closer Look at XPages in IBM Lotus Domino Designer 8.5 Ray Chan Advisory I/T Specialist Lotus, IBM Software Group

Professional Course in Web Designing & Development 5-6 Months

Utilising the data attribute. adding client side behaviour in Oracle APEX

SKILLBUILDERS CALENDAR

PlayerLync Forms User Guide (MachForm)

MY MEDIASITE.

<Insert Picture Here>

Oracle Application Express 5.1

Going to the Grid: What the APEX 5.1 Interactive Grid Means or You and Your Users. Karen Cannell

An Oracle White Paper April Oracle Application Express 5.0 Overview

Full Stack Web Developer

Connect Databases to AutoCAD with dbconnect Nate Bartley Test Development Engineer autodesk, inc.

<Insert Picture Here> Oracle SQL Developer: PL/SQL Support and Unit Testing

1 Copyright 2013, Oracle and/or its affiliates. All rights reserved.

PHP / MYSQL DURATION: 2 MONTHS

Newsletter Popup v3.x Configuration for Magento 2

Oracle Application Express 5 New Features

Global Variables Interface

Imagination To Realization

ASP.NET AJAX adds Asynchronous JavaScript and XML. ASP.NET AJAX was up until the fall of 2006 was known by the code-known of Atlas.

Oracle Applica7on Express (APEX) For E- Business Suite Repor7ng. Your friend in the business.

Promote Your Knowledge with the Power of Your Community & Oracle APEX

Full Stack Web Developer

Enterprise Reporting -- APEX

Overview

Designing Reports in Power BI Desktop using Bookmarks and Drillthrough

Oracle Application Express Student Guide

AD406: What s New in Digital Experience Development with IBM Web Experience Factory

No Programming Required Create web apps rapidly with Web AppBuilder for ArcGIS

Working with Javascript Building Responsive Library apps

,

Telerik Test Studio. Web/Desktop Testing. Software Quality Assurance Telerik Software Academy

Overview. Principal Product Manager Oracle JDeveloper & Oracle ADF

Oracle APEX Overview. May, Copyright 2018, Oracle and/or its affiliates. All rights reserved.

Jquery Ajax Json Php Mysql Data Entry Example

Build Tizen HTML5 Apps w/ Sencha Architect & Sencha Touch

BF Survey Pro User Guide

NetAdvantage for jquery SR Release Notes

CMS 504: D2 for Space Contributors and Coordinators Updated: January 29, 2018

Where Do We Go From Here? Why Many IT Staff are Living in the Past

Tyler Dashboard. User Guide Version 6.0. For more information, visit

Oracle Database. Installation and Configuration of Real Application Security Administration (RASADM) Prerequisites

INTRODUCTION TO JAVASCRIPT

APEX as frame for Forms. AGENDA 1. History 2. Modernization four steps Value Upgrade APEX-FORMS Web-Mashup Mobilization 3. Summary 4.

Oracle APEX 18.1 New Features

JSN UniForm User Manual. Introduction. A simple contact form created by JSN UniForm. JSN UniForm is a Joomla form extension which helps you create

COURSE OUTLINE MOC 20480: PROGRAMMING IN HTML5 WITH JAVASCRIPT AND CSS3

Release Notes (Build )

Manage and Generate Reports

UI Course HTML: (Html, CSS, JavaScript, JQuery, Bootstrap, AngularJS) Introduction. The World Wide Web (WWW) and history of HTML

Introduction to Automation. What is automation testing Advantages of Automation Testing How to learn any automation tool Types of Automation tools

Real Application Security Administration

1. Selenium Integrated Development Environment (IDE) 2. Selenium Remote Control (RC) 3. Web Driver 4. Selenium Grid

The Oracle APEX Community at-a-glance:

ALT-TAB: Better APEX Tabs. Scott Spendolini Director & Co-Founder

Dreamweaver CS4. Introduction. References :

Unveiling Zend Studio 8.0

Jquery Manually Set Checkbox Checked Or Not

ClassHub for Teachers. A User Guide for the Classroom

NetAdvantage for ASP.NET Release Notes

Installation & User Guide

& ( ); INSERT INTO ( ) SELECT

Chat Activity. Moodle: Collaborative Activities & Blocks. Creating Chats

All India Council For Research & Training

1. Cascading Style Sheet and JavaScript

CS50 Quiz Review. November 13, 2017

Raptor University. District Admin Training. Instructor: RAPTOR TECHNOLOGIES, LLC

Developing Exceptional Mobile and Multi-Channel Applications using IBM Web Experience Factory

Product Questions Magento Extension

ITEC447 Web Projects CHAPTER 9 FORMS 1

APEX Times Ten Berichte. Tuning DB-Browser Datenmodellierung Schema Copy & Compare Data Grids. Extension Exchange.

Nintex Forms 2010 Help

Raptor University. Building Admin Training. Instructor: RAPTOR TECHNOLOGIES, LLC

fpafi/tl open source^ Drupal 6 Theming Cookbook great-looking Drupal themes Over 100 clear, step-by-step recipes to create powerful,

City of Mobile GIS Web Mapping Applications: New Technology, New Expectations

RISKMAN QUICK REFERENCE GUIDE TO SYSTEM CONFIGURATION & TOOLS

Developing Web Applications for Smartphones with IBM WebSphere Portlet Factory 7.0

Building Web Applications

NetAdvantage for ASP.NET Release Notes

1 Copyright 2011, Oracle and/or its affiliates. All rights reserved.

Grid Essentials. APEX 18.1 Interactive Grids. Karen Cannell TH Technology

Get in Touch Module 1 - Core PHP XHTML

jquery Cookbook jquery Community Experts O'REILLY8 Tokyo Taipei Sebastopol Beijing Cambridge Farnham Koln

Table of contents. Ajax AutoComplete Manual DMXzone.com

INTERFACE FOUNDATIONS OF WEB DEVELOPMENT

Oracle APEX 19.1 The Golden Nuggets. Dietmar Aust Opal-Consulting, Köln

This presentation is for informational purposes only and may not be incorporated into a contract or agreement.

Transcription:

Practical Dynamic Actions Intro Jorge Rimblas 1.1

Jorge Rimblas Senior APEX Consultant @rimblas rimblas.com/blog Contributor to "Expert Oracle Application Express, 2nd Edition" with "Themes & Templates" chapter Oracle DB since 1995 APEX since it was HTMLDB in 2004 Always involved in web technologies jrimblas in OTN Forums 1. 2

Age: 13 years! Staff: 80+ employees 68 consultants/developers 2015: 60% Growth APEX Solutions: 12 Years! Largest APEX practice in North America Oracle Center of Excellence 1. 3

Agenda Browser events Dynamic Action Structure Demos AJAX Advanced Dynamic Actions 2

Background 3. 1

Your static web pages are "alive" 3. 2

Ok, maybe not "alive", but they are not just static. 3.3

With JavaScript can affect the structure (this means changing the HTML) 3. 4

With JavaScript can affect the look (this means changing the CSS and Styles) 3. 5

Definitions 3. 6

Client Side 3. 7

Client Side Server Side 3. 8

Dynamic Actions are all about Client Side " activities " Events 4

Browser Events 5. 1

Change Page Load Click Scroll Resize Key Press 5. 2

Any Browser Event 5. 3

Custom Events! 5. 4

Browser Events 4.2 5.0 5. 5

APEX 4.2 APEX 5.0 5. 6

Actions 6. 1

Component Actions Hide/Show Disable/Enable Clear Set Value etc... 6. 2

Style Actions Set Class Remove Class Set Style 6. 3

Navigation Actions Submit Page Cancel Dialog Close Dialog APEX 5 6. 4

Notification Actions Alert Confirm 6. 5

"Other" Actions Execute JavaScript Code Execute PL/SQL Code Plugins etc... More about this later 6. 6

Anatomy of a Dynamic Action 7. 1

When event [Optional Client Side Condition] When True What to do? [Affected Elements] When False What to do? [Affected Elements] 7. 2

When event [Optional Client Side Condition] When True True Actions When False False Actions 7. 3

Anatomy of a Dynamic Action APEX view 8. 1

Event/When? When will the Dynamic Action execute? On click On item (data) change On Focus On Page Load On (any) browser event etc 8. 2

Where? Where will the event happen? 8. 3

Where? Where will the event happen? Item(s) Button Region jquery Selector JavaScript Expression 8. 4

APEX 4.2 vs APEX 5.0 8. 5

Demo:Hide &Show 9. 1

Two Buttons to Hide/Show P11 9. 2

Builder Tabs 9. 3

P20

P20 With No Dynamic Actions 9. 4

Show Text Item "Enter User" Hide List Item "Select User" Show "Switch to Select User" Button Hide "Switch to Enter User" Button Show List Item "Select User" Hide Text Item "Enter User" Show "Switch to Enter User" Button Hide "Switch to Select User" Button 9. 56

Disable & Enable Sometimes a good alternative to Hide & Show 9. 7

Demo:Hide &Show Conditional 10. 1

P25

Structure Condition 10. 2

Condition Detail Condition 10. 34

Several Condition Options 10. 5

Demo:Set Value 11. 1

P30

Often used as part of several True Actions. Often used to set a hidden item Hidden Item needs: "Value Protected" = No Equivalent to $s API $s("{item}", "{VALUE}"); // Set to today $s("p30_log_date", "&P30_TODAY."); // Clear date $s("p30_log_date", ""); 11. 23

Demo: Key Release Uppercase Code 12. 1

P40

Set Value action Event 12. 23

Name to Uppercase Code this.triggeringelement.value.touppercase().replace(/\s+/g, '_').substring(0, 20); 1. Value of the triggeringelement 2. Make it uppercase 3. Globally Replace spaces (\s) with "_" 4. Only return the first 20 characters 12. 4

Demo:Change & Refresh 13. 1

P110

Don't forget: Page Items to Submit 13. 23

Inspect Submission

P110_DEPTNO is sent 13. 45

AJAX asynchronous JavaScript and XML group of interrelated Web development techniques used on the client-side to create asynchronous Web applications Wikipedia: en.wikipedia.org/wiki/ajax_(programming) 14. 1

Client Side AJAX Server Side 14. 2

JavaScript SQL PL/SQL 14. 3

Demo: AJAX 15. 1

Multiple Actions It's easy! 15. 2

P215

Two Different DA Assign Role 1. Remove Role 2. 15. 34

Assign Role 1. Event: On Button Click 2. Insert new role 3. Refresh Role Dropdown 4. Refresh Report insert into app_user_roles ( username, role_key) values ( :P215_USERNAME, :P215_ROLE_KEY); 15. 5

Remove Role 1. Event: On.deleteRow Click 2. Delete role 3. Refresh Role Dropdown 4. Refresh Report delete from app_user_roles where id = :P215_UR_ID; 15. 6

Remove Role 1. Event: On.deleteRow Click 2. Ask for Confirmation 3. Use "Set Value" to save ID of clicked row 4. Delete role 5. Give Confirmation 6. Refresh Role Dropdown 7. Refresh Report 15. 7

Get the ID value this.triggeringelement.getattribute("data-id"); this.triggeringelement.dataset.id 15. 8

Get the ID value this.triggeringelement.dataset.id 15. 9

Dataset / Data Attributes // data-id="{value}" this.triggeringelement.dataset.id // data-active="yes" this.triggeringelement.dataset.active // data-selected="yes" this.triggeringelement.dataset.selected // data-lineid="123" this.triggeringelement.dataset.lineid // data-rownum="2" this.triggeringelement.dataset.rownum 15. 10

Event Scope Static Dynamic Once 16. 1

Static Dynamic Once 16. 2

Advanced Dynamic Actions 17. 1

Built-in JavaScript Objects this.triggeringelement this.browserevent this.data 17. 2

triggeringelement Available inside the DA JavaScript var el = this.triggeringelement; var $el = $(this.triggeringelement); 18. 1

Name to Uppercase Code this.triggeringelement.value.touppercase().replace(/\s+/g, '_').substring(0, 20); 1. Value of the triggeringelement 2. Make it uppercase 3. Globally Replace spaces (\s) with "_" 4. Only return the first 20 characters 18. 2

Complex Page APEX 4.2 19. 1

Complex Page APEX 5.0 19. 2

Resources Download Demo App (coming soon!) JavaScript.com dynamic-actions.com rimblas.com/blog/2014/06/easy-prototyping-when-using-apex-da- Easy Prototyping with triggeringelement ( triggeringelement/ ) Install & Review Packaged Application: "Sample Dynamic Actions" 20. 1

Sample Dynamic Actions 20. 2

20. 3

Q&A Practical Dynamic Actions Jorge Rimblas @rimblas rimblas.com/blog 21

22