You just received an image or layered file from marketing with the design for an application you need to build. You're wondering what to do. How do I translate this into a usable APEX template? APEX provides great flexibility that allows your applications to fit within your corporate visual theme, but many people don't realize that the APEX built-in themes are not static or your only option. HTML and CSS can be daunting when your expertise lies within the database realm. This session will show you that a little understanding goes a long way.
Gen AI in Business - Global Trends Report 2024.pdf
Get the Look and Feel You Want in Your APEX Applications
1. #Kscope
Get the look and feel you want
in your APEX Applications
Jorge Rimblas
Rimblas Consulting
!
jorge@rimblas.com
2. #Kscope
About the speaker
• Using Oracle since1995
• eBusiness Suite , SQL, PL/SQL, Forms, C, UNIX,
web technologies
• Using APEX since 2005
• Exclusively APEX since 2008
• Consulting
• Training
• One on One help
3. Now what?
• You just got a JPG
or PSD file
• Assignment:
Make APEX use it
4. Now what?
• Client shows you their Corporate Website
• Assignment:
Make APEX use it
Or
5. If we’re lucky
• Grab the logo from their Corporate Website
• Upload and use it in APEX
• Choose the closest theme from the gallery
6. If we’re lucky
• Grab the logo from their Corporate Website
• Upload and use it in APEX
• Choose the closest theme from the gallery
Usually not that lucky!
Plan B
7. • Understand themes and templates
• Identify and map page elements
• Build your own “on/off” state components
Agenda
35. Remove Extras
• We go from 25 to 2
• Change the names
• If you need more, add them!
36. Templates & Substitutions
• Templates work by expanding substitutions
• Many may be empty
• The end result is sent to the page
37. Templates & Substitutions
S u b s t i t u t i o n S t r i n g Va l u e
#LABEL# Save Record
<button>
<span>#LABEL#</span>
</button>
Template Before Substitution
<button>
<span>Save Record</span>
</button>
Template After Substitution
38. Templates & Substitutions
S u b s t i t u t i o n S t r i n g Va l u e s
#JAVASCRIPT# apex.submit(‘SAVE’)
#BUTTON_ATTRIBUTES#
#BUTTON_ID# 2345654
#LABEL# Save Record
<button onclick="#JAVASCRIPT#" class="button" #BUTTON_ATTRIBUTES#
id="#BUTTON_ID#">
<span>#LABEL#</span>
</button>
Template
<button onclick="apex.submit(‘SAVE’)" class="button" id="2345654">
<span>Save Record</span>
</button>
After Substitution
39. Sorting Things Out
• Identify major components
• Map elements to UI counterparts
• Find similar APEX theme
52. Sprites
Similar to one image for “on” and “off” states
Sprites aren’t little images, a sprite is one big image!
Reference: http://css-tricks.com/css-sprites/ and
popular social media site that recently hand an IPO
53. Sprites
“Reducing the number of HTTP
requests has the biggest impact on
reducing [page loading] response
time and is often the easiest
performance improvement to make.”
"Performance Research, Part 1: What the 80/20 Rule Tells Us about Reducing HTTP
Requests" by Tenni Theurer on the Yahoo! User Interface Blog
54. Sprites
• Combine multiple images into one
• Build your own sprites
• Search for services that create sprites
55. Styling two state elements
• You require two images!
1.normal
2.hover!
• Alignment and size must be exact!
• But we’ll combine them into one file (sprites)
56. Styling state elements
• Add multiple state images to your file!
1.normal
2.hover!
3.selected
4.selected hover
5.alternative
6.etc...
!