Oracle Apex 18.1 PDF
Oracle Apex 18.1 PDF
Oracle Apex 18.1 PDF
Dietmar Aust
Opal-Consulting, Köln
www.opal-consulting.de
About Dietmar. 2
Feature Analysis
How to find the new features? 4
https://apexea.oracle.com/
Documentation (BETA)
https://docs.oracle.com/database/apex-18.1/
Architecture
Additional x11-x20 … Parameters in AJAX calls 11
The big archtitecture change was in APEX 5.1 => JSON processing
Application Builder
Resource Links 13
Pre
5.2
Set default schema for user in workspace
Default Schema 21
Pre
5.2 Default schema is used:
– SQL Workshop
– Installation of packaged applications
User Interface Attributes > Collapsed by Default 22
Application Building
New Authentication Scheme 25
Authentication Provider
New Authentication Scheme 26
Scopes
https://developers.google.com/identity/protocols/
googlescopes#google_sign-in
Switching Authentication Schemes at Runtime 33
Request variable:
APEX_AUTHENTICATION=<Scheme Name>
f?p=&APP_ID.:1:&APP_SESSION.:APEX_AUTHENTICATION=Google
Switching Authentication Schemes at Runtime 36
Why?
• Convenience, almost every application
needs it
• Used for blueprint applications
Application Access Control 40
Application Access Control 41
Application Access Control 42
Summary
• Roles are exported with the application
• User / Role Mappings are NOT
• Typically use local user table for
additional details (email, first name, …)
• API provided: APEX_ACL
• Data dictionary views for viewing and modifying the
data (INSERT, UPDATE, DELETE on
APEX_APPL_ACL_USERS)
Application Settings 45
Why?
• Application and Source Code should be identical
between environments, specific go into config table
Application Settings 46
Manage Email
Templates
as part of
the application
Email Templates 48
Email Templates 49
Easy to use
Advantages:
• Improved accessibility
• Lazy loading with cache
• Minimum search characters
Responsive Rich Text 57
RESTful Services
(providing)
RESTful Services (providing) 60
New
Schemas Schemas Features
§ APEX_180100 § ORDS_METADATA only here
§ APEX_LISTENER § ORDS_PUBLIC_USER
§ APEX_REST_PUBLIC_USER
RESTful Services (providing) 61
SQL Workshop
SQL Workshop > QuickSQL 69
Sample Datasets
SQL Workshop > Sample Datasets 72
Packaged Applications
APEX_PKG_APP_INSTALL 74
Pre
5.2 Install, upgrade and delete packaged applications on the command
line:
declare
l_app_id number;
begin
-- Install
l_app_id := APEX_PKG_APP_INSTALL.install(
p_app_name => 'Sample Trees',
p_authentication_type => 'NATIVE_APEX_ACCOUNTS',
p_schema => 'DAUST_DE' );
end;
APEX_PKG_APP_INSTALL 75
PL/SQL APIs
PL/SQL APIs 78
APEX_ACL add_user_role
Application Access Control has_user_any_roles
has_user_role
remove_all_user_roles
remove_user_role
replace_user_roles
APEX_APP_SETTING get_value
Application settings set_value
PL/SQL APIs 79
APEX_APP_BUILDER_API delete_page_item
Generate Pages, Reports, etc. delete_region
Mainly used in Data Reporter,
not (yet) officially supported
APEX_APPLICATION_INSTALL get_no_proxy_domains
Application settings get_remote_server_base_url
get_remote_server_https_host
get_remote_server_ords_tz
set_remote_server
PL/SQL APIs 80
APEX_COLLECTION create_collection
Collection handling (Parameter p_truncate_if_exists)
APEX_CREDENTIAL clear_tokens
Public API for Secure Credentials set_persistent_credentials
(basic auth / oauth2) set_persistent_token
set_session_credentials
set_session_token
APEX_JWT decode
Handling von JSON Web Tokens encode
validate
PL/SQL APIs 81
https://blogs.oracle.com/apex/apex-181-early-adopter-2-rest-services-and-plsql
APEX_EXEC add_column
SQL Execution (mostly add_filter
remote), especially for plugin- add_order_by
developer add_parameter
close
execute_plsql
execute_remote_plsql
execute_web_source
get_anydata
get_clob
get_column
…
PL/SQL APIs 82
5.1.4
APEX_EXPORT get_application
Replacement for wwv_flow_utilities. get_workspace_files
export_application_to_clob get_feedback
get_workspace
APEX_MAIL prepare_template
Mail handling send_mail (support template)
APEX_SESSION attach
Session utils create_session
testing in sqlplus / sqlcl delete_session
running apex_exec in sqlplus / sqlcl detach
PL/SQL APIs 83
APEX_UTIL delete_feedback
Utilities delete_feedback_attachment
get_timeframe_lov_data
reply_to_feedback
set_parsing_schema_for_request
Multitenant applications
Switching datasets (different
schemas)
Data Dictionary
APEX_WORKSPACE_GROUPS 85
https://jastraub.blogspot.de/2018/03/apex-181-new-feature-
logging-web.html
Questions? 87
Backup
Universal Theme light / dark navigation 89
Create Feature Page 90