+ All Categories
Home > Documents > Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM...

Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM...

Date post: 17-Apr-2020
Category:
Upload: others
View: 5 times
Download: 0 times
Share this document with a friend
45
Transcript
Page 1: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...
Page 2: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018, Oracle and/or its affiliates. All rights reserved. |

Building a Proof-of-Concept

Oracle APEXHands-On Lab

July, 2019 (v19.1.3)

2

Page 3: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

This lab starts with a napkin design of data structures we would like to use for a proof-of-concept. Using Quick SQL you will quickly define the data structures and utilize various table and column directives to better define the tables and also create some dummy data. You will then be creating an application based on the new tables. Lastly, you will be updating some of the generated components to improve the initial app.

From napkin design to demo-ready, proof-of-concept app, complete with some dummy data, in minutes - Viola!

Overview

Page 4: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

Obtaining a WorkspaceGetting Started

4

{Note: If you already have a workspace on https://apex.oracle.comthen you can skip this section and move to Section 2}

Section 1

Page 5: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Go to https://apex.oracle.com• Click Get Started for Free

Step 1.1a

5

Page 6: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Click Request a Free Workspace

Step 1.1b

6

Page 7: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

•What Type of Workspace - Click Application Development• Enter your Identification details – First Name, Last Name,

Email, Workspace{Note: For workspace enter a unique name,such as first initial and last name}

• Enter Schema details – Schema Name {Note: For schema name enter the same nameas you entered for workspace}

• Complete the wizard

Step 1.2

7

Page 8: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Check your email You should get an email from [email protected] a few minutes{Note: If you don’t get an email go back to Step 1 and make sure to enter your email correctly}• Click Create Workspace• Click Continue to Log In Screen• Reset your password

Step 1.3

8

Page 9: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

Using Quick SQLDefining new data structures

9

Section 2

Page 10: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

Original Spreadsheet Table

10

Page 11: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

Napkin Design – Improved data model for Projects

11

Page 12: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Log into your workspace on https://apex.oracle.com• Click SQL Workshop• Click SQL Scripts

• Click Quick SQL

Step 2.1 – Open Quick SQL

12

Page 13: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Enter the Table Name {Team Members}• Indent 2 or more spaces and enter the column names

{Note: You don’t need to enter all of the column names shown, as you will load a complete script later in this lesson}

Step 2.2 - Enter shorthand for Team Members table

13

Page 14: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Enter the Table Name in the first column {Projects}• Indent 2 or more spaces and enter the column names

Step 2.3 - Enter details for Projects table

14

Page 15: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Click Help• Click Table

Directives

Step 2.4 – Review Help

15

Page 16: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Click Column Directives

16

Step 2.4b – Review Help

Page 17: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Click Data Types

17

Step 2.4c – Review Help

Page 18: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Close Help• Enter /insert xx for tables• Enter /nn for mandatory columns• Enter /references team_members

for project lead column• Enter num for budget column• Enter /vc30 and /check ASSIGNED,

IN-PROGRESS, COMPLETED for status column

Step 2.5 - Improve the Shorthand

18

Page 19: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Enter the Table Name indented {Milestones}• Indent 2 or more spaces and

enter the column names

Step 2.6 - Enter details for a child table

19

Page 20: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Enter the Table Name indented {Tasks}• Indent 2 or more spaces and

enter the column names

Step 2.7 - Enter details for another child table

20

Page 21: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Copy the following URL into a new window in your browser: {Remember you are on Slide 21 if you click the link directly}

http://www.oracle.com/technetwork/developer-tools/apex/application-express/apex-beginner-quicksql-5095785.txt

• Copy and Paste the full scriptinto the Quick SQL Shorthand pane{on the left}• Click Generate SQL

Step 2.8 – Complete the Shorthand

21

team_members /insert 10username /nn /upperfull nameemail /nnphone_numberprofilephoto file

projects /insert 20name /nnproject_lead /nn /references team_membersbudget numstatus vc30 /nn /check ASSIGNED, IN-PROGRESS, COMPLETEDcompleted_datedescriptionmilestones /insert 30name /nndue_date /nndescription

tasks /insert 100name /nnassignee /nn /references team_membersmilestone_id /references milestonesstart_date /nnend_datecost numdescriptionis_complete_yn /check Y, N

view project_tasks projects tasks

Page 22: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Click Settings• Object Prefix, enter hol• On Delete, select Restrict• Primary Keys, select

12c Identity Data Types• Date Data Type, select TIMESTAMP

WITH LOCAL TIME ZONE• Audit Columns, check Include• Row Version Number, check Include• Click Save Changes

Step 2.9 – Update the Settings

22

Page 23: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Click Save SQL Script• For Script Name, enter hol• Click Save Script• Click Review and Run

{Note: The script will be displayed in the Script Editor within SQL Scripts}

• Click Run

• Click Run Now

Step 2.10 – Save, Review, and Run the Script

23

Page 24: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

Using the Create Application WizardCreating an app on the tables from Quick SQL

24

Section 3

Page 25: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Click Create App from Script

{Note: If you are back on SQL Scripts, and don’t see the “Create App from Script” button perform the following steps:1. Within the Results column, click “1” for the script you just ran. 2. Under View Results, click the magnifying glass. The results page shown above should now be displayed again}

Step 3.1 – Start the Create App Wizard

25

Page 26: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• For Name, enter Projects• Click Appearance• For Theme Style, select Vita-Slate

Step 3.2 – Name the App and Update Appearance

26

Page 27: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• For Features, click Check All

Step 3.3 – Add Features

27

Page 28: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Click Create Application

Step 3.4 – Create Application

28

Page 29: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Your new application will be displayed in Page Designer• Click Run Application

Step 3.5 – App in Page Designer

29

Page 30: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Enter your credentials• Play around with your new application

Step 3.6 – Runtime App

30

Page 31: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

Updating a PageImproving the App

31

Section 4

Page 32: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• From the development environment, click App Builder, and then select Create

• Click New Application

Step 4.1 – Restart the Create App Wizard

32

Page 33: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• In the Create App Wizard, click Load Blueprint• For Projects, click Load

Step 4.2 – Load Blueprint

33

Page 34: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Click Add Page• Click Interactive Grid

• For Page Name, enter Milestones• For Table or View, select

HOL_MILESTONES• Click Add Page

Step 4.3 – Add a Page

34

Page 35: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Click and hold the mouse when hovering over the hamburger for the Milestones – Interactive Grid page•Move it up until the page is under Projects• Release the mouse

Step 4.4 – Reorder a Page

35

Page 36: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• For Milestones – Interactive Report with Form page, click Edit• Click Delete

Step 4.5 – Delete a Page

36

Page 37: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• Click Create Application• In Page Designer, click Run Application

Step 4.6 – Create App and Run

37

Page 38: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• In the runtime environment, click Milestones

• In the Developer Toolbar, click Edit Page 6

Step 4.7 – Navigate to Milestones

38

Page 39: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• In Page Designer, under Milestones, click Columns• Click PROJECT_ID

Step 4.8 – Update Project ID Column

39

Page 40: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• In the Property Editor, update the following:oIdentification: Type – select Select ListoHeading: Heading – enter ProjectoList of Values: Type – select SQL QueryoList of Values – SQL Query enter

select name d, id r from hol_projectsorder by 1

oDisplay Extra Values – click NooDisplay Null Value – click No• Save and Run the App

Step 4.8b – Update Project ID Column

41

Page 41: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• In the runtime environment, click Actions, select Columns• Uncheck Displayed for Id, Row Version, Created, Created By,

Updated, and Updated By• Click Save

Step 4.9 – Hide Columns

42

Page 42: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

• In the runtime environment, click Actions, select Report, select Save

Step 4.10 – Save the Report

43

Page 43: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

Useful LinksLearn More

44

Page 44: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Copyright © 2018 Oracle and/or its affiliates. All rights reserved. |

Useful Links

• APEX Collateral http://apex.oracle.com

• Tutorials https://apex.oracle.com/en/learn/tutorials

• Community http://apex.oracle.com/community

• External Site + Slack http://apex.world

45

Page 45: Building a Proof-of-Concept · Oracle APEX POC Hands-On Lab 19.1 Created Date: 7/22/2019 6:42:25 PM ...

Recommended