2015 Aljaz Mali Apex Shared Components
2015 Aljaz Mali Apex Shared Components
Aljaž Mali
2
Quick introduction
Public appearances
• HTMLDB – just a toy?, SIOUG, Portorož 2004
• It's good to know your own backyard (Trace Analyzer, dbms_profiler), SIOUG, Portorož 2005
• Oracle Database Standard Edition, SIOUG, Portorož 2008
• Create table, SIOUG, Portorož 2009
• With Oracle Forms to future, SIOUG, Portorož 2010
• Oracle Listener, SIOUG, Portorož 2011
• Apex Plugins, SIOUG, Ljubljana 2012
• Apex Workshop: All you need to start working with Apex, Ljubljana 2012
• Apex Listener, SIOUG, Mengeš 2013
• Apex and jQuery, SIOUG, Mengeš 2013
• Apex Dynamic Actions, SIOUG, Mengeš 2013
• JavaScript in Apex, SIOUG, Ljubljana 2014
• JavaScript in Apex, SROUG, Zlatibor, Serbia, 2015
• Apex Meetups, Ljubljana, Kranj, 2015
• Apex Shared Components, SIOUG, Portorož, 2015
• JavaScript in Apex, HROUG, Rovinj, Croatia, 2015
4
Applications:
special (DB – Newspaper Distribution, FIS – Flight Information System)
ARBITER – the ultimate tool in audit trailing
APPM – Abakus Plus Performance and Monitoring Tool
Services:
DBA, OS administration, programming (MediaWiki, Oracle)
networks (services, VPN, QoS, security)
open source, monitoring (Nagios, OCS, Wiki)
Hardware:
servers, backup server, SAN storage, firewalls
Infrastructure:
from 1995 GNU/Linux (20 years of experience!)
Oracle on GNU/Linux: since RDBMS 7.1.5 & Forms 3.0 (before Oracle!)
>20 years of experience with High-Availability!
6
Shared Components
https://docs.oracle.com/cd/E59726_01/doc.50/e39147/shared_comp.htm#HTMDB29851
7
8
Agenda
New features
http://www.oracle.com/technetwork/developer-tools/apex/learnmore/apex-
50-new-features-2517998.html
https://
docs.oracle.com/cd/E59726_01/doc.50/e39147/release_changes.htm#H
TMDB29121
Theme Subscriptions
Theme Subscriptions
Theme Subscriptions
13
• Theme styles are CSS files that are referenced in the page template using
the #THEME_STYLE_CSS#
• A theme can have multiple theme styles with one style set active
• “Sharing”
Rejoin session
Rejoin session
• Disabled
• Enabled for Public Sessions
• Enabled for All Sessions
Rejoin session
• Enabled for Public Sessions
If the URL goes to a public page and does not contain a session ID, Application Express attempts to utilize the
existing session cookie established for that application. For applications with both public and authenticated
pages, a session ID is defined after the end user authenticates. Application Express only joins using the cookie
when the session is not yet authenticated.
Session State Protection is enabled for the application and the URL includes a valid checksum. For public
bookmarks, the most restrictive item level protection must be either Unrestricted or Checksum Required -
Application Level.
OR, the URL does not contain payload (a request parameter, clear cache or data value pairs). This setting
also requires that Embed In Frames is set to Allow from same origin or to Deny for the application.
17
For security reasons, Oracles recommends that administrators disable Rejoin Sessions
unless they implement workspace isolation by configuring the Allow Hostname attribute
at the workspace or instance-level.
http://docs.oracle.com/cd/E59726_01/doc.50/e39147/sec_admin_ssl.htm#CIHHIFBG
18
Build options
• APEX_UTIL.SET_BUILD_OPTION_STATUS
• APEX_UTIL.GET_BUILD_OPTION_STATUS
19
Shortcuts
• Use Shortcuts to write frequently used code once and then reference it in
many places within your application
• Shortcuts also allow for dynamic generation of code in places that typically
only support static text
• Shortcuts are substitution strings that are expanded using the syntax:
"SHORTCUT_NAME“
• Subscriptions
20
• Item Labels
Shortcuts - types
• HTML Text
• Image
• Message
Creating shortcuts on page item labels and page item post element text
attributes can include the following substitution strings:
• #CURRENT_FORM_ELEMENT#
• #CURRENT_ITEM_ID#
• #CURRENT_ITEM_NAME#
• #CURRENT_ITEM_HELP_TEXT#
23
Text Messages
• Text Messages can be used to build translatable text strings with substitution
variables that can be called from PL/SQL packages, procedures, and functions
Oracle Application Express is translated into German, Spanish, French, Italian, Japanese,
Korean, Brazilian Portuguese, Simplified Chinese, and Traditional Chinese. If your application
uses a language that is not among the ten languages into which Oracle Application Express is
translated, you must translate messages displayed by the Application Express reporting
engine.
https://docs.oracle.com/database/121/HTMDB/global_messages.htm#HTMDB25939
24
Knowledge!
Apex Shared Components
Aljaž Mali