According to the APEX Statement of Direction the next version of APEX (5.2) will have native support for external data sources. This presentation will give you an introduction into how create reports based on web sources and remote databases.
Following the APEX 5.2 early adopter release, I've integrated several external web service API with APEX, creating different kind of reports and explored many possibilities of creating report sources based on external sources.
This presentation starts showing the classic and interactive report data source options and how each of one works, following by web source examples and you will learn how to create powerful reports integrated with any source.
2. We Solve Problems with Oracle Technology
We Develop Bespoke Applications
We Support our Customers
3. Rodrigo Mesquita
• Development Consultant with many years experience in
Oracle technologies such as PL/SQL, Forms, Reports and
APEX, across a variety of business areas.
• Trainer, Speaker, Blogger, Consultant and Developer.
• Promote Oracle APEX.
4. Agenda
A Look at APEX Web Sources
Creating a Web Source
Integrating APEX and a third party app (Trello)
Web Credentials
Dashboard on an external source (Twitter)
Cache and performance
6. APEX 18.1 Report Sources
Web Sources
• Local Database
• Remote Database
•Web Source
7. What is an APEX Web Source?
Web Sources
Web Sources enable developers to access REST services or
generic JSON/XML data feeds and use the data in APEX
components.
18. Integrate APEX and a third part app
What’s Trello?
Trello is a collaboration tool that organizes projects into boards
Board
List List
Card Card Card
19. API
JSON Response
Metadata
Integrate APEX and a third part app
Trello API
GET
Parameter:
List ID
Web
Source
GET
Parameter:
board ID
Web
Source
GETWeb
SourceBoard
List
Card
TokenAuthent
ication
20. Integrate APEX and a third part app
Classic report
Classic report
Classic report
Boards
Lists
Cards
Hidden item: BOARD_ID
Hidden item: LIST_ID
https://api.trello.com/1/lists/:LIST_ID/cards
https://api.trello.com/1/boards/:BOARD_ID/lists
https://api.trello.com/1/member/me/boards?&key=:KEY&token=:TOKEN
REFRESH
REFRESH
21. Integrate APEX and a third part app
Classic Report Cards Template
select ename as CARD_TITLE,
job as CARD_TEXT,
‘javascript:SetId(id);’ as CARD_LINK
from emp
24. Web Credentials
• Credentials are stored at the workspace-level and
are visible in all applications.
• When exporting an app, APEX exports the credentials.
• When importing an app, if credentials already exists in
the target workspace the app uses them.
About Credentials
27. oAuth2 Client Credentials Flow
Dashboard on an external source
APEX never exports Passwords or Client Secrets
28. Dashboard on an external source
Classic report
Calendar
Jet Chart
29. Local Post Processing
Dashboard on an external source
select text LIST_TEXT,
name LIST_TITLE,
' @' || screen_name LIST_BADGE,
'<img style="border-radius: 50%" src="' ||
profile_image_url || '">' ICON_CLASS
from #APEX$SOURCE_DATA#
where trunc(CREATED_DATE) >= sysdate - 7
order by created_at desc
30. Dashboard on an external source
to_date(TO_TIMESTAMP_TZ(SUBSTR(CREATED_AT,4), 'MON DD HH24:MI:SS TZHTZM YYYY'),'dd/mm/yyyy')
We’re an Oracle Platinum Partner with multiple specialisations to our name, including Managed Services, Engineered Systems, Oracle Cloud implementations. We’re also the #1 APEX development consultancy in the UK with a particular focus on Forms to APEX projects and developing Cloud Native Applications.
we are the ukoug database partner of the year, 3 years running running…as voted for by our customers
as mensioned i'm rodrigo mesquita,
i'm a trainer, i do speking on events like this,
we mantaing a blog, please checkout the link at the end,
but most of the time i'm a consultant and a developer, and try to promote apex where is possible witch is part of the reason of this presentation.