Practice 18 Adding Additional Pages To Your Application
Practice 18 Adding Additional Pages To Your Application
Practice 18 Adding Additional Pages To Your Application
Overview
In this hands-on lab, you will add Calendars, Charts, Tree pages, and Maps to the Demo
Projects application and to the Online Shopping application.
Downloads
• Did you miss out on trying the previous labs? Don’t worry! You can download the
application from here and import it into your workspace. To run the app, please run
the steps described in Get Started with Oracle APEX and Using SQL Workshop
workshops.
Create a Calendar
1. Navigate to App Builder and in the Home Page, click Demo Projects.
6. Click Save and Run Page. Log in to the application with your credentials.
In this lab, you will create a Form Page on the DEMO_PROJECTS tables, then in the next labs,
you will link the form to the Calendar Page.
1. Navigate to App Builder and in the Home Page, click Demo Projects. Then, click
Create Page.
In this lab, you will link the form page you created in Task 2 with the Calendar page.
3. In the Link Builder – Create Link dialog box, select 9 for Page, and enter 9 for Clear Cache.
Click OK.
5. In the Link Builder – View / Edit Link dialog box, input the following:
• Page - select 9.
• Name - select P9_ID
• Value - select ID or enter &ID.
• Clear Cache - enter 9.
6. You can enable calendar drag and drop by using the component attribute Drag and Drop.
Your SQL query must select a primary key column, and you must have set the Primary
Key Column calendar attribute. Then enter the PL/SQL code to update the event row in
the database in the Drag and Drop PL/SQL Code attribute. That PL/SQL code typically
performs a SQL update on the database table - the bind variables:
APEX$PK_VALUE, :APEX$NEW_START_DATE, and :APEX$NEW_END_DATE contain the
dragged events primary key value as well as the new start and new end timestamp.
In this hands-on lab, you create the Employee tree by first creating a blank page and then
adding a Tree region.
1. First, create a blank page in the Demo Projects application. In the application home page,
click Create Page.
3. Enter Tree Page for Name and then click Create Page.
Under Source:
• For Type, select SQL Query.
• For SQL Query, copy the following code and paste it:
select case when connect_by_isleaf = 1 then 0
when level = 1 then 1
else -1
end as status,
level,
"ENAME" as title,
null as icon,
"EMPNO" as value,
"ENAME" as tooltip
from EBA_DEMO_IR_EMP
start with "MGR" is null
connect by prior "EMPNO" = "MGR"
order siblings by "ENAME"
8. In the Property Editor, Select Attributes. Navigate to Settings and select / enter
the following:
Overview
In this lab, you will first create a Map Page with Store Details, and then you will create an entry
for the Store Details Map in the navigation Menu Entry.
Downloads
• Did you miss out on trying the previous labs? Don’t worry! You can download the
application from here and import it into your workspace. To run the app, please run
the steps described in Get Started with Oracle APEX and Using SQL Workshop
workshops.
Create a Store Details Map Page and Add It to Desktop Navigation Bar
1. Navigate to App Builder and in the Home Page, click Online Shopping Application.
Under Navigation:
• For Breadcrumb, set it to No.
5. For Create Map, enter the following and click Create Page. For Map Style, select Points.
Under Map Attributes:
• For Geometry column Type, select Two Numeric Columns.
• For Longitude Column, select LONGITUDE.
6. The Store Locations Map should be visible to the Public. To set the page as Public, select
Page #: Store Locations Map in the Rendering tree. In the Property Editor, navigate to
Security, and for Authentication, select Page is Public.
10. In the Shared Components page, under Navigation, select Navigation Bar List.
13. For List Entry, enter the following and click Create List Entry.
Under Entry:
• For List Entry Label, enter Store Locations Map.
Under Target:
• For Page, select 20.
15. You can now see that Store Locations Map is now displayed in Navigation Bar.
You now know how to manage Map pages. You may now proceed to the next lab.