Done in 60 seconds - Creating Web 2.0 applications made easy

23
D Creating Web 2.0 applications made easy

description

Presentation during OBUG APEX SIG about one of the major APEX 4 features: Dynamic Actions.

Transcript of Done in 60 seconds - Creating Web 2.0 applications made easy

Page 1: Done in 60 seconds - Creating Web 2.0 applications made easy

D

Creating Web 2.0 applications made easy

Page 2: Done in 60 seconds - Creating Web 2.0 applications made easy

• Oracle since v5, Forms 2.3, Case*Designer etc

• Presenter at UKOUG (4x), OOW (3x), Collab (1x), ODTUG (2x), OBUG, OGH, etc..

• Oracle ACE Director [DB Dev]

• Co-author of Expert Oracle Application Express

What about me?

Page 3: Done in 60 seconds - Creating Web 2.0 applications made easy

APEX 4.0 - What do you like best?

Page 4: Done in 60 seconds - Creating Web 2.0 applications made easy

WHY ?

Page 5: Done in 60 seconds - Creating Web 2.0 applications made easy

Declarative definition

of client-side behaviour…

…without needing to know JavaScript

Page 6: Done in 60 seconds - Creating Web 2.0 applications made easy

Just specify

When

Action

What

Page 7: Done in 60 seconds - Creating Web 2.0 applications made easy

Specification 1

The application should disable the Alternate Number field until the Phone Number field is filled in.

– When: Phone Number is null

– Action : Disable

– What : Alternate Phone

– ( False: Enable Alternate Phone )

Page 8: Done in 60 seconds - Creating Web 2.0 applications made easy

Specification 2

The application should hide the List Price and Product Image if the Product Available is No.

– When: Product Available = ‘N’

– Action : Hide

– What :

• List Price

• Product Image region

– Opposite :

• Show List Price

• Show Product Image region

Page 9: Done in 60 seconds - Creating Web 2.0 applications made easy

Specification 3

The application should have a button that allows users to increase all customers credit limit.

– When: Button clicked

– Action : Update credit limit

– What : [none]

Page 10: Done in 60 seconds - Creating Web 2.0 applications made easy

Specification 4

The application should set Credit Limit’s color according to the amount (green if < 5000, red if > 5000).

– When : Credit Limit changes

– Action : Change color

– What : Credit Limit itself

Page 11: Done in 60 seconds - Creating Web 2.0 applications made easy

• Switch on ‘Debug’

• Check the Console

Debugging

Page 12: Done in 60 seconds - Creating Web 2.0 applications made easy

• Switch on ‘Debug’

• Check the Console

• Use console.log(this);

Debugging

Page 13: Done in 60 seconds - Creating Web 2.0 applications made easy

• Switch on ‘Debug’

• Check the Console

• Use console.log(this);

• Check your AJAX processes

Debugging

Page 14: Done in 60 seconds - Creating Web 2.0 applications made easy

• Downloads and executes additional code

• Increases page size

Performance

Page 15: Done in 60 seconds - Creating Web 2.0 applications made easy

Learn about HTML and the DOM

• What is the DOM?– Document Object Model

– How your browser “sees” a web page

– Allows access /manipulation of content

• Methods– Select elements

– Traverse the hierarchy

– Manipulate elements

• Events– User actions fire events in DOM

– We can attach code to these events

• Like triggers in the DB

Page 16: Done in 60 seconds - Creating Web 2.0 applications made easy

Learn JavaScript (jQuery)

• What is JavaScript?– Well… it’s not Java!

– Client side (browser) scripting language

– Allows us to make HTML applications interactive

• jQuery & jQuery UI built in– JavaScript libraries that make things easier

• Dynamic Actions are generating JavaScript

Page 17: Done in 60 seconds - Creating Web 2.0 applications made easy

Learn CSS

• What is CSS?– Cascading Style Sheets

– Rules that are applied to element

• Pertain to visual aspects: location, fonts, colors, etc.

– Closest rule wins (almost always)

• Selectors– Used to target which elements rules are applied to

– Common selectors include

• HTML tag: input

• HTML ID: #the_elements_id

• Class: .the_elements_class

• Pseudo-class: a:hover

Page 18: Done in 60 seconds - Creating Web 2.0 applications made easy

Specification 5

Edit customer in popup window and reflect the changes immediately in the report.

Page 19: Done in 60 seconds - Creating Web 2.0 applications made easy

Bu

yth

isB

oo

k

Page 20: Done in 60 seconds - Creating Web 2.0 applications made easy

Questions

Page 21: Done in 60 seconds - Creating Web 2.0 applications made easy

To Do List

21

Page 22: Done in 60 seconds - Creating Web 2.0 applications made easy

Logica is a business and technology service company, employing 39,000 people. It provides business consulting, systems integration and outsourcing to clients around the world, including many of Europe's largest businesses. Logica creates value for clients by successfully integrating people, business and technology. It is committed to long term collaboration, applying insight to create innovative answers to clients’ business needs. Logica is listed on both the London Stock Exchange and Euronext (Amsterdam) (LSE: LOG; Euronext: LOG). More information is available at www.logica.com

Thank you

Logica | Meander 901 P.O. Box 7015 | 6801 HA Arnhem | The Netherlands | www.logica.com

Contact: Roel Hartman - Lead Technical Architect Oracle: +31 (0) 26 3765 000 M: +31 (0) 6 2954 3729 E: [email protected]

All slides © 2011 Logica

Page 23: Done in 60 seconds - Creating Web 2.0 applications made easy