transitioning from apex 4 to apex 5 - amazon s3days...transitioning from apex 4 to 5: time for a...
TRANSCRIPT
Transitioning from APEX 4 to 5: Time for a Huge Monitor
Scott Spendolini Practice Director
Welcome
2
3
About Me
@sspendol
Agenda• Overview• Intro to Page Designer• Common Flows• Summary
4
Overview
5 6
Modern Database Web Application Development
Introducing APEX 5• APEX 5 will be a dramatic upgrade from APEX 4
– Current release date is CY2015 (31-DEC-2015)– Have a look at the Early Adopter (EA3) today:
• http://apexea.oracle.com
• 100% of the developer screens have been re-done with a clean, new UI– Functionality change ranges from subtle to extreme
7
New Features in APEX 5• Universal Theme & Theme Roller• Multiple IRs per page• Modal Dialogs• Navigation Lists• Mobile Enhancements• Calendars• File Handling• Security• Page Designer
8
Intro to the Page Designer
9
Page Designer• The Page Designer is the key new feature of APEX 5
– Tree View has been retired; Component View lives on
• Much more traditional Desktop IDE layout– Component > Layout > Properties
• Fundamental improvements & changes include:– Saving Changes– Multi-Select– Drag & Drop– Running Your Application
10
Saving Changes• The most disruptive change to the application
builder is that in APEX 5, changes need to be explicitly saved
• While disruptive, this change provides additional useful functionality:– Multiple changes can be made and saved at once - greatly
reducing development time– Uncommitted changes can be easily undone– Centralized Error Messages
11
Multi-Select• Multiple components can be selected at once and
any change to their properties will be applied to all selected components– Shift or Cmd + Click to select
• Multiple properties can be changed for multiple components
• Unlike components (i.e. a button and a region) can also be selected– Only properties that are common to all components can be
changed in this case
12
Drag and Drop• All rendering components (regions, items & buttons)
can be easily rearranged via drag & drop– Click and hold the mouse button while hovering over a
component and move the mouse– Next, drag the component to anyplace that is highlighted in
yellow and release the mouse button– Remember to save your changes!
13
Running Your Application• Clicking the Run icon will open your application in a
new tab– Or change tabs to your application, if one is already open– No need to right-click and select “Open Window in New Tab”
• New Developer Toolbar has three configurable settings– Auto Hide– Show Icons Only– Display Position
• Top, Bottom, Right or Left
14
15
Size Matters
1366 x 768 common resolution
2560 x 966 27” monitor
16
Toggle/Expand/Contract Regions
21
Shared Components
Comments
Team Development
Component View
Utilities
Undo/Redo
Create
Page LockRibbon
22
Rendering
Dynamic Actions
Processes
Shared Components
Group by Component
Order by Exec
Tree
23
Grid Layout Messages Page Search Help
OptionsExpand/Contract
Zoom In/Out
Content
24
Regions Items Buttons
Show Unsupported
Components
25
Show Common
Show All
Collapse All
Expand All
Go To Group
Inspector
Tips• Grid Layout
– Hide Empty Legacy Positions & Empty Positions– Hide Global Page Components (unless you need to see
them)
• Region– Use the Collapse All option– Expand SQL Source– Choose an appealing Theme
26
Common Flows
27
Common Flows• To illustrate the differences between APEX 4 & 5, we’ll
create a simple two-page application and compare the time of each step– Timings were pre-calculated for both APEX 4 & 5 at a
“proficient” user level– Results were averaged over three trials per step– Your results may vary depending on a number of factors
28
Create an Application• Create a simple, one page application via the wizard
29
00:24 00:30
Winner
Create a Page• Create a blank new page w/a navigational control
30
00:23 00:16
Winner
Create an Interactive Report• Create a new Report based on the EMP table
31
00:14 00:09
Winner
Create a Form• Create a new Form region based on the EMP table
32
00:26 00:26
Tie
Link a Report to a Form• Link the IR on Page 1 to the Form on Page 2
33
00:09 00:20
Winner
Link a Report to a Form• After our link is created, if we try to
edit a record with APEX 5, an error message is raised– This is because APEX 5 will create hidden
items with Session State Protection set to Checksum Required - Session Level
– New, blank pages are created with Page Access Protection set to Unrestricted
– Thus Page Access Protection on Page 2 needs to be set to Arguments Must Have Checksum
• APEX 4 by default does not enable SSP at neither the item or page level
34
Modify a Form• Move the MGR field so that it appears on the same
line as the JOB field
35
00:09 00:05
Winner
Modify a Form• Make all Labels Left Aligned
36
00:16 00:08
Winner
Modify a Form• In APEX 4.2, it takes ~ 2 seconds to change each
Label template– Our example had 8 items, so ~16 seconds total– More complex forms with 30 items would take ~60 seconds
• In APEX 5, Label Alignment is a region setting– Takes the same time for 1 or 200 items
37
Modify a Form• Convert JOB to a Select List
38
00:18 00:18
Tie
Create a Dynamic Action• Create a Dynamic Action that toggles COMM based
on the value of JOB
39
00:25 00:40
Winner
Change the Color Scheme• Change the general color scheme of the application
40
02:00 00:36
Winner
Move Navigational Control• Move the navigational control in the sidebar to top-
level tabs (or vice versa)
41
05:00 00:16
Winner
42
TimingsAPEX 4.2 APEX 5.0
Create an Application 0:24 0:30Create a Page 0:23 0:16
Create a Report 0:14 0:09Create a Form 0:26 0:26
Link a Report to a Form 0:09 0:20Move a Field 0:09 0:05
Make Labels Left Aligned 0:16 0:08Convert Item to LOV 0:18 0:18
Create Dynamic Action 0:25 0:40Change Color Scheme 2:00 0:36
Move Navigational Control 5:00 0:16
43
Total Development Time
APEX 4 APEX 5
9:44
3:44
Summary
44
45
You’re Gonna Need a Bigger Monitor
46
You’re Gonna Need a Bigger Monitor
Summary• Overall, APEX 5 is more efficient than APEX 4 in
most places– Standard wizard-based transactions are slightly
optimized or the same– Batch & Maintenance operations are greatly
optimized• Many are region-based, not item based, so the savings
increases as does the number of items
• Like anything new, there is a learning curve– Which is high in some places, but low in others
47
Q & A
48