APEX 4.2 - Day1

101
7/30/2019 APEX 4.2 - Day1 http://slidepdf.com/reader/full/apex-42-day1 1/101 [email protected] http://www.DelveOracle.com 1 Oracle Application Express (APEX)

Transcript of APEX 4.2 - Day1

Page 1: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 1/101

[email protected] http://www.DelveOracle.com 1

Oracle Appl ication Express (APEX)

Page 2: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 2/101

[email protected] http://www.DelveOracle.com 2

Oracle Application Express Course Overview

• This course introduces the candidates to Oracle Application Express.

• It is designed to give candidates practical experience in using this tool forbuilding user applications for the Web

Page 3: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 3/101

[email protected] http://www.DelveOracle.com 3

Skills Gained

• The candidates will practice:– Developing a Web Application

– Creating Reports

– Creating Forms

– Managing Pages and Regions

– Using and Managing Shared Components in an Application

– Adding Page Processing Components

– Managing Database Objects

– Building Queries of Database Objects

– Deploying an Application as a Packaged Application

– Managing Users and Groups

– Authorising and Authenticating Users

– Administering APEX Workspaces

– Loading and Unloading Data or Application Components

– Deploying an Application

Page 4: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 4/101

[email protected] http://www.DelveOracle.com 4

Course Objectives

• By the end of the course, candidates will be able to use the Oracle ApplicationExpress development environment for functional application development forthe Web.

• They will gain practical experience in building and deploying applications forthe Web, in using Application Express to manage database objects and inadministering the Oracle Application Express environment.

Page 5: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 5/101

[email protected] http://www.DelveOracle.com 5

Prerequisites for this course

• A working knowledge of SQL and PL/SQL is required.

• Some knowledge of HTML would be beneficial but is not essential.

• Some knowledge of J avaScript would be beneficial but the same is also notessential.

Page 6: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 6/101

[email protected] http://www.DelveOracle.com 6

Course Contents - DAY 1

• Session 1: Introduction to Oracle Application Express

– APEX Concepts

– APEX Main Components

– Workspace and Create a Workspace

– Log into APEX

– Run an Application

• Session 2: Maintaining Database Objects Using SQL Workshop

– Browse, create and modify database objects using Object browser

– Execute SQL scripts using SQL Command and SQL Scripts– Build and save SQL queries using Query Builder

– Import and export data using Utilities

Page 7: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 7/101

[email protected] http://www.DelveOracle.com 7

Course Contents - DAY 1 (cont…)

• Session 3: Building Database Applications

– Discuss the difference between a Database Application and a WebsheetApplication

– Identify the components of a database application

– Create a database application from a spreadsheet– Create a database application from scratch

• Session 4: Creating Reports

– Identify the types of reports you can create

– Create, manipulate and customize interactive reports

– Create and modify classic and wizard reports

• Session 5: Hands-on

Page 8: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 8/101

[email protected] http://www.DelveOracle.com 8

Course Contents - DAY 1 (cont…)

• Session 5: Hands On

– Create a Workspace

– Explore SQL Workshop, Browse, Create & Modify objects

– Create an Application, Reports, Pages and Regions.

Page 9: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 9/101

[email protected] http://www.DelveOracle.com 9

Session 1: APEX Concepts

• Oracle Application Express (Oracle APEX), formerly called HTML DB, is a rapid web application development (RAD)tool for the Oracle database.

• Using only a web browser and limited programming experience, you can develop and deploy professionalapplications that are both fast and secure.

• Oracle application express combines the qualities of a personal database, productivity, ease of use, and flexibilitywith the qualities of an enterprise database, security, integrity, scalability, availability and built for the web.

Application Express is a tool to build web-based applications and the application development environment is alsoconveniently web-based.

Page 10: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 10/101

[email protected] http://www.DelveOracle.com 10

Session 1: APEX History

2006 Application Express 2.2Packaged Applications

2006 Application Express 2.1

Oracle XE

2005 HTML DB 2.0SQL Workshop

2004 HTML DB 1.6 Themes

2004 HTML DB 1.5

First Release

2007 Application Express 3.0Flash Charts, PDF Printing,Access Application Migration

2008 Application Express 3.1Interactive Reports, BLOB

2009 Application Express 3.2Forms Conversion

2010Application Express 4.0Websheets, Dynamic Actions,Plug-Ins, RESTful Web

Page 11: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 11/101

[email protected] http://www.DelveOracle.com 11

Session 1: APEX History

• APEX has been around for quite some time perhaps even longer than most people know. The first public release of APEX, or HTML DB as it was called then, came in 2004, but its history reaches back quite a long way.

• Various releases have been introduced; each providing improved features and functionality. The following is a verybrief list of the releases and some of the more notable features:

– HTMLDB 1.6 (2004) introduced themes, master-detail forms, page groups, page locking, and some multilingualcapabilities.

– HTMLDB 2.0 (2005) introduced SQL Workshop, graphical query builder, database object browser, and session stateprotection.

– APEX 2.2 (2006) introduced packaged applications, the APEX dictionary views, and the access control wizard.

– APEX 3.0 (2007) introduced PDF printing with BI Publisher, migration from Microsoft Access, and page and regioncaching.

– APEX 3.1 (2008) introduced Interactive Reports, runtime-only installation capability, and improved security.

– APEX 3.2 (2009) introduced a migration helper for Oracle Forms based systems and various security enhancements.

Page 12: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 12/101

[email protected] http://www.DelveOracle.com 12

Session 1: Application Express Usages

• Application Express is a productive tool to build applications that report on database data.

• Reports are typically hyper text linked with other reports allowing users to navigate through database data in thesame way they navigate web sites.

• Columns in reports can be easily linked to other reports, charts, and data entry forms and it is all done declaratively.An extensive charting engine allows SQL queries to be represented graphically and that allows data to be moreeffectively communicated.

• Application Express is also very adept at editing database data and supports a large number of declarative formcontrols including radio groups, checkboxes, select lists, shuttles, text editors, and date pickers.

Page 13: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 13/101

[email protected] http://www.DelveOracle.com 13

Session 1: Apex 4.0 and the Future

•  The entire focus of APEX 4 was to make development of rich interactive Web 2.0 applications easier by making theprocess as declarative as possible. APEX 4 has introduced so many new features—indeed, new ways to attackproblems—that it will be hard not to choose APEX as the preferred development platform for Oracle-basedapplications.

• APEX 4.0’s Dynamic Actions provide a way for you to define client side behaviors, such as enabling or disablingfields or regions declaratively without J avaScript. With some J avaScript knowledge under your belt, you can createcomplex dynamic actions that do client side calculations, AJ AX, and more.

• An improved Charting Engine based on AnyChart 5.1 provides declarative Flash-based charts, gauges, maps, andGantt charts. All chart types are interactive and drillable, and several charts can be combined into a dashboard styleinterface.

• Probably the most exciting new feature is the new plug-in architecture that provides an extensible framework allowingAPEX Community members to build and share their own custom item, region, process, and dynamic action types.

• While APEX 4 is definitely a giant leap forward from the architecture of APEX 3, the plug-in architecture blows thedoors wide open to change from the broad and growing community of APEX developers.

• APEX now comes with a Team Development feature that eases the management of the development process bytracking features, to-do lists, bugs, and milestones. A user feedback mechanism is also included that allows users to

provide inline feedback while using the system.• Websheets provide a fast and direct way for end users to gather and share information without IT intervention. Armed

with only a web browser and access to the Websheets application, end users can define page content, data grids,and reports and decide who else in the enterprise has access to that data.

Page 14: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 14/101

[email protected] http://www.DelveOracle.com 14

Session 1: Architecture

• Integrated within the database 9iR2, 10g, 11g, XE

• Meta data driven

• Uses APEX Listener, Embedded Gateway or ModPLSQL

Page 15: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 15/101

[email protected] http://www.DelveOracle.com 15

Session 1: Architecture

• Application Express lives completely within your Oracle database. It is comprised of nothing more than data intables and large amounts of PL/SQL code. The essence of Oracle Application Express is approximately 215 tablesand 200 PL/SQL objects containing 300,000+lines of code.

•  The browser sends a URL request that is translated into the appropriate Oracle Application Express PL/SQL call.

• After the database processes the PL/SQL, the results are relayed back to your browser as HTML. This cyclehappens each time you request or submit a page.

•  The application session state is managed in the database tables within Application Express. It does not use adedicated database connection. Instead, each request is made through a new database session, consumingminimal CPU resources.

• Versions before to Oracle Database 11.1 requireOracle HTTP Server (Apache) with mod_plsql.

 The following illustration shows that architecture.

• With Oracle Database 11.1 or higher or OracleDatabase 10g Express Edition, you can remove OracleHTTP Server (Apache) from the architecture andreplace it with the embedded PL/SQL gateway.

Page 16: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 16/101

[email protected] http://www.DelveOracle.com 16

Session 1: Page Processing

• Each request opens / closes Database session

– Doesn’t keep a Database session open for each user

• Page Request / Submission processing adds minimal overhead

Page 17: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 17/101

[email protected] http://www.DelveOracle.com 17

Session 1: Mult i-Tenant SaaS

• Single Oracle Database for multiple applications

• Provides virtual private databases

• Self-service or IT managed provisioning

Page 18: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 18/101

[email protected] http://www.DelveOracle.com 18

Session 1: Oracle Deployment Options

Cloud / Hosted

On Premise – In Datacenter 

On Premise - Departmental Server 

Personal Database

Deployable on any Oracle Database accessed using only a Web browser 

Page 19: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 19/101

[email protected] http://www.DelveOracle.com 19

Session 1: Building Integrated Applications

•  The APEX Engine, and hence APEX applications, can be easily integrated with outside data sources using WebServices and DB links.

• Given that APEX resides within the Oracle DB it can easily integrate with other Oracle database features.

• APEX applications can also be extended using Javascript and AJ AX to provide a richer UI.

Page 20: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 20/101

Page 21: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 21/101

[email protected] http://www.DelveOracle.com 21

Session 1: Targets the Rapid Application Development Community

• APEX is targeted at the Rapid Application Development (RAD) developer.

• APEX best suited to Departmental / Targetted applications.

• Advantage over scripting languages is the declarative framework and longevity as based on PL/SQL which hasbeen around for 20 years

• Productivity Apps =Packaged Applications which are a set of self service productivity applications usable by non-programmers.

Page 22: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 22/101

[email protected] http://www.DelveOracle.com 22

Session 1: Out of the Box Development features

Reports

Forms

Charts

Calendar

 Templates

Navigation

Validations

Processes /Dynamic Actions

Computations

Branches

Web Services

Email Services

 TranslationServices

ConditionalProcessing

Authentication

Authorization

Session StateManagement

Logging &Monitoring

Page 23: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 23/101

Page 24: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 24/101

Page 25: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 25/101

[email protected] http://www.DelveOracle.com 25

Session 1: Dynamic Actions

• Declaratively define client-side behavior 

• JavaScript and AJAX code implemented by Application Express engine

• No need for expertise in JavaScript and AJAX

• Al lows you to declaratively:

– Show / hide

– Enable / disable

– SQL and PL/SQL AJAX calls

– Add / remove styles

• Each can have mult iple true and false actions

Page 26: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 26/101

[email protected] http://www.DelveOracle.com 26

Session 1: Plug-Ins

• Extend built-in functionality with new item types,region types, processes, dynamic actions, etc.

• Declarative property and attribute settings

• Once loaded, use in similar fashion to native

components

• Included in APEX appl ication export

• Encourages APEX community contributions

Page 27: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 27/101

[email protected] http://www.DelveOracle.com 27

Session 1: Websheets

• Build basic applications faster and with more functionality

• Web-based content sharing

• Hierarchical text pages

• Editable data grids

• Interactive Reports

• Mark-up syntax with SQL Tags

• Designed for Business Users

• Incorporates “sharing” model (Reader, Contributor, Admin)

• Integrated annotations (attachments, tags, notes, links)

Page 28: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 28/101

Page 29: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 29/101

Page 30: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 30/101

[email protected] http://www.DelveOracle.com 30

Session 1: Workspace

• Oracle Application Express enables a single Oracle database to become a shared workgroup database service.Multiple users can access it using a Web browser without installing additional software.

• Workspaces: The area where you develop applications is called a workspace. A workspace is a virtual privatedatabase that enables multiple users to work within the same Oracle Application Express installation while keepingtheir objects, data, and applications private.

Page 31: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 31/101

[email protected] http://www.DelveOracle.com 31

Session 1: Workspace

• When setting up Application Express users at a large organization, you assign roles and privileges to specific users. The roles within Application Express include the following:

• Workspace administrators are users who perform administrator tasks specific to a workspace such as managinguser accounts, monitoring workspace activity, and viewing log files. For this guide, you will be acting as theworkspace administrator when setting up the development environment.

• Developers are users who create and edit applications. Developers can have their own workspace or share aworkspace.

• End users have no development privileges. You defineend users so that they can access applications that donot use an external authentication scheme.

• Oracle Application Express administrators aresuperusers that manage an entire hosted instanceusing the Application Express Administration Servicesapplication.

Page 32: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 32/101

Page 33: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 33/101

[email protected] http://www.DelveOracle.com 33

Session 1: Create a Workspace

• ClickManage Workspaces.

• Under Workspace Actions, click Create Workspace.

•  The Create Workspace Wizard appears.

Page 34: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 34/101

[email protected] http://www.DelveOracle.com 34

Session 1: Create a Workspace

• For Identify Workspace:

– Workspace Name - Enter a unique workspace name.

– In general, you want to enter a workspace name that is significant to you. For example, you might enter yourown name, your company name, or the name of the project or department to which your application pertains.

– If you want to use the same name for both your workspace and schema, enter a workspace name that containsonly alphabetic characters. Schema names are restricted to alphabetic characters.

– Workspace ID - Leave Workspace ID blank to have the new Workspace ID automatically generated. AWorkspace ID must be a positive integer greater than 100000.

– Workspace Description - Enter a workspace description.

– Click Next.

Page 35: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 35/101

Page 36: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 36/101

[email protected] http://www.DelveOracle.com 36

Session 1: Create a Workspace

• For Identify Administrator:

• Administrator Username - Accept the default, ADMIN, or enter another user name to be used in Oracle ApplicationExpress.

•  You are creating an account for only one user, yourself, as an administrator.

• Administrator Password - Enter a case-sensitive password.

• Enter the remaining information, including your valid email address, and click Next.

•  The login credentials for accessing Oracle Application Express are sent to the email address you enter here, if youhave configured the email settings for your Oracle Application Express environment.

Page 37: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 37/101

[email protected] http://www.DelveOracle.com 37

Session 1: Create a Workspace

• ClickNext.

• Confirm your selections and click Create Workspace.

• ClickDone.

Page 38: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 38/101

[email protected] http://www.DelveOracle.com 38

Session 1: Login to Apex

•  To log in to your local instance of Application Express, you must have this information:

• URL where you can access Application Express

• Workspace name you use to develop applications

• Username set up for you for this workspace within Application Express

• Password set up for you for this workspace within Application Express

•  You might want to create user accounts for other developers who will be sharing this workspace. Associating userswith the workspace grants them access to all applications and scripts within that workspace. You can also createadditional user accounts for workspace administrators.

Page 39: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 39/101

Page 40: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 40/101

[email protected] http://www.DelveOracle.com 40

Session 2: SQL Workshop

• SQL Workshop. Use the SQL Workshop to access tools to view and manage database objects. Click SQLWorkshop to access the following database tools:

– Object Browser  Explains how Object Browser enables developers to browse, create, and edit objects in adatabase.

– SQL Commands Provides information on how to use SQL Commands to create, edit, view, run, and deleteSQL commands.

– SQL Scripts Describes how to use SQL Scripts to create, edit, view, run and delete script files.

– Utilities Describes how to use Oracle Application Express utilities to load and unload data from an Oracledatabase, generate DDL, view object reports and restore dropped database objects.

– RESTful Services Describes how to use Oracle Application Express RESTful Services to enable thedeclarative specification of RESTful services used to access the database.

Page 41: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 41/101

[email protected] http://www.DelveOracle.com 41

Session 2: SQL Workshop – Object Browser 

•  The Object Browser page is divided into two sections:

• Object Selection pane displays on the left side of the Object Browser page and lists database objects of a selectedtype within the current schema. You can further narrow the results by filtering on the object name.

• Detail pane displays to the right of the page and displays detailed information about the selected object. To viewobject details, select an object in the Object Selection pane. Click the tabs at the top of the Detail pane to viewadditional details about the current object. To edit an object, click the appropriate button.

Page 42: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 42/101

Page 43: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 43/101

Page 44: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 44/101

[email protected] http://www.DelveOracle.com 44

Session 2: SQL Workshop – SQL Command

•  The top of the SQL Commands home page features a command editor and the following controls:

•  Autocommit. If available, click the Autocommit check box to enable autocommit and disable transactionalcommands.

• Rows. Select the number of rows of output to display simultaneously up to a maximum of 100,000. All rows of DBMSOutput are displayed regardless of the Display list setting.

• Clear Command icon. The Clear Command icon resembles a pencil with an eraser. Use this icon to clear the text inthe command editor.

• Find Tables icon. The Find Tables icon resembles a flashlight. Click this icon to view tables within the currentlyselected schema.

• Save. Click the Save button to save the contents of the command editor, or the currently highlighted content to a file. You are prompted to enter a name and an optional description. The command appears in the Saved SQL list.

• Run. Click the Run button to run the command in the command editor, or the currently highlighted command in thecommand editor.

• Results. Click the Results tab to see the results from the last successfully executed SQL command. Click DBMSOutput at the bottom of the displayed results to display lines of DBMS output. This control only appears when thereis DBMS output to display. Click Download to export results to a comma-delimited file on your local file system.

• Explain. Click the Explain tab to examine the execution plan used by the optimizer for statements that makechanges to the database. Objects in the output are linked to the Object Browser. Click the linked object to view itsproperties in the Object Browser.

Page 45: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 45/101

[email protected] http://www.DelveOracle.com 45

Session 2: SQL Workshop – SQL Command

• Describe. Enter Describe object_name and click Run to display column definitions for a table or view, orspecifications for a function or procedure in the Describe tab. Select links in the Describe results to write thatinformation into the command editor. For example, click a table name to addowner.table, click a column name to addthe column name, click a procedure or function name to add the object call with parameters, or click a package nameto add the package call.

• Saved SQL. Click the Saved SQL tab to display a list of all SQL commands saved in the current workspace. Clickthe command title to load it into the command editor.

• History. Click the History tab to list your recently executed commands. Your last 200 executed commands are

saved.

Page 46: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 46/101

[email protected] http://www.DelveOracle.com 46

Session 2: SQL Workshop – SQL Scripts

• A SQL script is a set of SQL commands saved as a file in SQL Scripts. A SQL script can contain one or more SQLstatements or PL/SQL blocks. You can use SQL Scripts to create, edit, view, run, and delete script files.

• Notes while using SQL Commands

– SQL*Plus commands in a SQL script are ignored at run time.

–  There is no interaction between SQL Commands and SQL Scripts.

–  You can cut and paste a SQL command from the SQL Script editor to run it in SQL Commands.

– SQL Scripts does not support bind variables.

Page 47: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 47/101

Page 48: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 48/101

[email protected] http://www.DelveOracle.com 48

Session 2: SQL Workshop – Utilities

•  This section describes how to use Oracle Application Express utilities to build SQL queries, load and unload datafrom an Oracle database, generate DDL, view object reports, manage User Interface Defaults, restore droppeddatabase objects, compare schemas, monitor the database, and view database details.

Page 49: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 49/101

[email protected] http://www.DelveOracle.com 49

Session 2: SQL Workshop – Utilities

•  The Query Builder page is divided into three sections:

• Object Selection pane displays on the left side of the page and contains a list objects from which you can buildqueries. Only objects in the current schema display.

• Design pane displays to the right of the Object Selection pane and above the Conditions, SQL, Results, and SavedSQL tabs. When you select an object from the Object Selection pane, it appears in the Design pane.

• Output pane displays below the Design pane. Once you select objects and columns, you can create conditions, viewthe generated SQL, or view query results.

Page 50: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 50/101

[email protected] http://www.DelveOracle.com 50

Session 2: SQL Workshop – Utilities

•  The Data Load/Unload wizards in Oracle Application Express enable you to easily load and unload delimited text datato and from the database. The step-by-step wizards have the following features:

•  You can load or unload XML files or delimited-field text files (such as comma-delimited (.csv) or tab-delimited files).

•  You can load by copying and pasting from a spreadsheet.

•  You can omit (skip) columns when loading or unloading.

•  You can load into an existing table or create a new table from the loaded data.

• When loading into a new table, the primary key can be taken from the data or generated from a new or existing

Oracle sequence.

• When loading into a new table, column names can be taken from the loaded data.

• Each time that you load from a file, file details are saved in a Text Data Load Repository. You can access these filesfrom within the repository at any time.

• Limitations include the following:

•  The wizards load and unload table data only. They do not load or unload other kinds of schema objects.

•  You can load and unload to and from your own schema only. This is also true for users with administrator privileges.

•  You can load or unload only a single table at a time.•  There are no data type limitations for unloading to text or XML files, or for loading from XML files. However, when

loading from spreadsheets (through copy and paste) or from text files, only the following data types aresupported: NUMBER, DATE, VARCHAR2, CLOB, BINARY_FLOAT, and BINARY_DOUBLE.

• Supported unload formats include:

•  Text such as comma-delimited or tab-delimited data

• XML documents

Page 51: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 51/101

[email protected] http://www.DelveOracle.com 51

Session 2: SQL Workshop – Utilities

• With Oracle Application Express, you can generate data definition language (DDL) statements from the Oracle datadictionary. You can use these scripts to create or re-create database schema objects. The scripts can be generatedto display inline or saved as a script file. You can generate the create scripts for all objects for a specific schema,specific object types, or specific objects.

•  To generate a DDL statement:

• On the Workspace home page, click the SQL Workshop.

• ClickUtilities.

• ClickGenerate DDL.•  The Generate DDL page appears.

• ClickCreate Scrip t.

•  The Generate DDL Wizard appears.

• Select a database schema and click Next.

• Define the object type:

– Output - Specify an output format. Select either Display Inline or Save As Script File.

– Check All - Select this option to include all object types for which to generate DDL.– Object Type - Select the object types for which to generate DDL.

–  To select object names for the selected object types, click Next and follow the on-screen instructions.

• ClickGenerate DDL.

Page 52: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 52/101

[email protected] http://www.DelveOracle.com 52

Session 2: SQL Workshop – Utilities

•  The Managing Methods on Tables utility enables you to create an application programming interface, or package,based on a specified table.

•  To create a package:

• On the Workspace home page, click the SQL Workshop.

• ClickUtilities.

• ClickMethods on Tables.

•  The Create Table API page appears.

• Enter a Package name. To have the final package name match the case entered in the Package Name field,clickPreserve Case and clickNext.

• Select the table(s) for which you want to generate the PL/SQL package-based application program interface (API)and click Next.

• A confirmation page appears, which displays the subprogram(s) and their description. You have the option to show ordownload the specification or body. To confirm, click Create Package.

Page 53: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 53/101

[email protected] http://www.DelveOracle.com 53

Session 2: SQL Workshop – Utilities

• User Interface Defaults enable you to assign default user interface properties for regions and items. This wizardenables you to specify whether you want to use User Interface Defaults if they exist. When you create a form orreport using a wizard, the wizard uses this information to create default values for region and item properties. Utilizinguser interface defaults can save valuable development time and has the added benefit of providing consistencyacross multiple pages in an application. User Interface Defaults are divided into two categories, the Table Dictionaryand the Attribute Dictionary.

•  The Table Dictionary enables you to specify defaults for tables and columns that are initialized from the databasedefinition.

•  The Attribute Dictionary enables you to create defaults based on attribute or column names, thus being usable acrossall tables. Attribute definitions can also have synonyms, allowing more than one attribute to share a commondefinition.

• When you use User Interface Defaults during creation of pages and regions, the Table Dictionary takes priority overthe Attribute Dictionary. If a table and column combination exists, that is used rather than an attribute definition of thesame name. This can be useful, for example, when you want to have a specific label or Help text forthe CREATED_BY column in the emp table but then use more generic defaults forCREATED_BY in another table.

Page 54: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 54/101

[email protected] http://www.DelveOracle.com 54

Session 2: SQL Workshop – Utilities

•  You can run a report that compares database objects in two schemas, displaying differences between them. You cancompare all objects in the schemas or limit your report to specific objects. To compare two schemas, both must beavailable to your workspace.

• Examples:

• Compare DEMO_ objects by searching for that naming convention. The report indicates if the object exists in each of the two schemas.

• Analyze the object details in the two schemas to determine why one implementation is different. For example, thereport might show that an index in one schema has an additional column or a column with a different data type.

•  To compare schemas:

• On the Workspace home page, click SQL Workshop.

• ClickUtilities.

• Under additional Utilities, click Schema Comparison.

• On the Schema Comparison page, make the appropriate selections to run the comparison:

– Schema 1 and Schema 2 - Select the schemas to compare.

– Compare - Restrict the report to show one object type or select All to show all database objects.

– Search - Enter a case insensitive query for the object name.

– Rows - To change the number of rows that appear in the report, make a selection from the Display list.

– Compare - Click Go to find the results matching your selections.

– Show Differences Only or Show Details - Select the type of information you want to review.

Page 55: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 55/101

[email protected] http://www.DelveOracle.com 55

Session 2: SQL Workshop – Utilities

• Utilities includes a variety of object reports to help you better manage the objects in your database.

•  Table Reports

• Security Reports

• PL/SQL Reports

• Exception Reports

• All Object Reports

Page 56: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 56/101

[email protected] http://www.DelveOracle.com 56

Session 2: SQL Workshop – Utilities

•  You can use the Recycle Bin to view and restore dropped database objects. When you drop a table, the spaceassociated with the table is not immediately removed. The Oracle database renames the table and places it and anyassociated objects In the Recycle Bin. You can recover objects in the Recycle Bin at a later time.

•  You can view objects in the Recycle Bin on the Dropped Objects page. Once you select an object and view theObject Details page, you can choose to purge the object or restore the object by clicking the appropriate button.

•  To view objects in the Recycle Bin:

• On the Workspace home page, click the SQL Workshop.• ClickUtilities.

• ClickRecycle Bin.

• ClickDropped Objects.

•  The Dropped Objects page appears.

•  To filter the report, select an object type, enter the object name in the Original Name field, and clickGo.

•  To view object details, click the object name.

•  The Object Details page appears.•  To restore the current object, click Restore Object.

•  To permanently delete the current object, click Purge Object.

Page 57: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 57/101

[email protected] http://www.DelveOracle.com 57

Session 2: SQL Workshop – RESTful Services

• RESTful Services enable the declarative specification of RESTful services used to access the database. Theseservices work with the Oracle Application Express Listener to enable the consumption of these services. This sectiondescribes how to create, edit and delete RESTful Services.

• Representational State Transfer (REST) is a style of software architecture for distributed hypermedia systems suchas the World Wide Web. A service is described as RESTful when it conforms to the tenets of REST. Although a fulldiscussion of REST is outside the scope of this document, a RESTful Service has the following characteristics:

• Data is modelled as a set of resources. Resources are identified by URLs.

• A small set of operations are used to manipulate resources (for example, PUT, POST, GET, DELETE).

• A resource can have multiple representations (for example, a blog might have a HTML representation and a RSSrepresentation).

• Services are stateless and since it is likely that the client wants to access related resources, these should beidentified in the representation returned, typically by providing hypertext links.

Page 58: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 58/101

[email protected] http://www.DelveOracle.com 58

Session 2: SQL Workshop – RESTful Services

• RESTful Services enable an application to publish Web services that are accessed by other applications to exchangedata. For example, you can configure a RESTful Service to return all employee names for a particular department.

 The data exchange for a RESTful Service follows the Representational State Transfer (REST) architectural style.

• For each Web service you want your application to provide, you must configure a RESTful Service Module. Thismodule is a grouping of common templates, known as resource templates under a common Universal ResourceIdentifier (URI) prefix. For each method associated with the same resource template prefix that you want to exposethrough this Web service, you must define a resource handler. For instance, if you want to provide a method to returndata and another to store data, you must define a resource handler for each operation.

• When you create a RESTful Service, you supply the necessary information about the structure of the request,response and operation to be performed including:

• A URI Template identifying the set of resources the service provides

• One or more HTTP methods that the service supports along with the SQL query or PL/SQL block to be performed. There are four HTTP methods including GET, DELETE, POST and PUT. Only one handler per HTTP method ispermitted. For example, the empinfo resource handler can only have one resource handler using GET, and only oneusing PUT.

• HTTP Header values that should be bound to parameters of the query block

• Parameters expected by the Web service

•  Type of input expected by the Web service

•  The format of the response

Page 59: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 59/101

[email protected] http://www.DelveOracle.com 59

Session 3: Build An Database Application

• An application is a collection of database-driven Web pages linked together using tabs, buttons, or hypertext links.

•  The pages within an application share a common session state definition and authentication method.

• Application Builder is the tool you use to build the pages that comprise an application.

Page 60: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 60/101

[email protected] http://www.DelveOracle.com 60

Session 3: Build An Database Application

• 3 Ways to Create an Application:

– Database

•  The application is based on

SQL queries or database tables.

– Websheet

• Wiki’s, Blogs etc.

– Packaged Application

Page 61: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 61/101

[email protected] http://www.DelveOracle.com 61

• Websheets Overview

• Websheets, a new marquee feature of APEX 4.0, deliver end user control over both web content and structure. In theearly days of APEX, when it was still known as Project Marvel and later HTML DB, some people thought that endusers could use APEX to develop their own applications. While this was true for simple spreadsheet-like applications,most end users were not comfortable building web applications that needed an underlying normalized databasetogether with snippets of SQL, PL/SQL, and J avaScript.

• Websheets now fulfill the early promise of end user development for web content like blogs, wikis, and very simplebusiness applications. Websheets give the end users this power without forcing them to learn how to normalize adatabase and write code. Everything in Websheets, except a few optional advanced features, is declarative.

• Websheets have been designed so that they are easy to use. However, like all computer tools, there is an associatedlearning curve. That’s the bad news. The good news is that the learning curve is very shallow. The tool relies heavilyon wizards that lead you intuitively through the content creation processes.

Session 3: Build An Database Application

Page 62: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 62/101

[email protected] http://www.DelveOracle.com 62

Session 3: Build An Database Application

Page 63: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 63/101

[email protected] http://www.DelveOracle.com 63

Session 3: Build An Database Application

Page 64: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 64/101

[email protected] http://www.DelveOracle.com 64

Session 3: Build An Database Application - SpreadSheet

• Create Application using a Spreadsheet

•  You can create an application based on spreadsheet data by selectingFrom Spreadsheet in the Create ApplicationWizard.

•  To create an application from spreadsheet data:

• On the Workspace home page, click the Appl ication Builder  icon.

• Click the Create button.

• For Method, select From Spreadsheet.

Page 65: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 65/101

[email protected] http://www.DelveOracle.com 65

Session 3: Build An Database Application - SpreadSheet

• For Load Method, specify how spreadsheet data is imported. Select one of the following and click Next:

– Upload file, comma separated (*.csv) or tab delimited . Specify the following and click Next:

•  Text File - Click Choose File to locate the file to be uploaded.

• Separator - Specify the column separator character. Use \t for tab separators.

• Optionally Enclosed By - Enter a delimiter character. You can use this character to deliminatethe startingand ending boundary of a data value. If you specify a delimiter character, the wizard ignores white spaceoccurring before the starting and ending boundary of a data value. You can also use this option to enclosea data value with the specified delimiter character. If applicable, select First row contains columnnames.

• File Character Set - Choose the character set in which the text file is encoded.

– Copy and paste. Copy and paste the tab delimited data you want to import.

• For Table Properties:

– Schema - Identify the database schema owner.

–  Table - Enter a name for the table being created.

– Set Table Properties - Review the table properties. Modify the data types or enter format masks.Specifywhether

to include a column by selectingYes orNo from the Upload list.– Click Next.

• For User Interface Defaults:

– Review the displayed Singular Name and Plural Name.

– (Optional) Under Column User Interface Defaults, review the displayed column labels.

– Click Next.

Page 66: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 66/101

[email protected] http://www.DelveOracle.com 66

Session 3: Build An Database Application - SpreadSheet

• For Application Options, specify the following:

– Application Name - Enter an alphanumeric name for this application.

– Create Mode - Options include:

• Read Only does not include insert and update pages.

• Read and Write includes insert and update pages.

– Report Implementation:

• Classic creates a SQL report.• Interactive creates an interactive report.

– Click Next.

• For User Interface Theme, select a theme and click Next.

•  Themes are collections of templates used to define the layout and style of an entire application.

Page 67: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 67/101

[email protected] http://www.DelveOracle.com 67

Session 3: Build An Database Application

• Components of an Application:

– Run Application submits the pages in the current application to the Application Express engine to renderviewable HTML.

– Supporting Objects links to the Supporting Objects page.

– Shared Components links to a list of shared components and user interface controls that can display or beapplied on every page within an application.

– Utilities various utilities for the application context

– Export/Import links you to the Export/Import Wizard. Use this wizard to import and export an entire applicationas well as related files such as cascading style sheets, images, static files, script files, themes, user interfacedefaults, and workspace users.

Page 68: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 68/101

[email protected] http://www.DelveOracle.com 68

Session 3: Build An Database Application - Copy

•  You can create a copy of an existing application by running the Create Application Wizard or by selecting theapplication and then Copy this Application on the Application home page.

•  To copy application by running the Create Application Wizard:

• On the Workspace home page, click the Appl ication Builder  icon.

• Click the Create button.

• SelectCopy of an existing Application

• For Method, click the As a copy of an exist ing appl ication link.

• For Identify Copy Target:

– Copy From - Select the name of the application to copy.

– Copy To - Enter a short descriptive name for the application to distinguish the new application in select lists andreports.

– New Application ID - Enter a unique integer value to identify the application. Note that Application IDs between3000 to 9000 are reserved for internal use.

– Copy Supporting Object Definitions - Specify whether to include supporting object definitions. Options include:

• Yes - Include database object definitions, image definitions, and seed data SQL statements encapsulatedin a single file.

• No - Do not include supporting object definitions.

– Click Next.

• ClickCreate Application.

Page 69: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 69/101

[email protected] http://www.DelveOracle.com 69

Session 3: Build An Database Application – Sample Application

• Oracle Application Express includes many sample applications. You can install, run, and use sample applications asis, or analyze them to better understand how to use Application Builder to build specific types of functionality.

•  To install sample applications:

• On the Workspace home page, click the Appl ication Builder  icon.

• Click the Create button.

• For Method, select Install Sample applications.

•  The Packaged Applications page appears.

Page 70: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 70/101

[email protected] http://www.DelveOracle.com 70

Session 3: Build An Database Application – Sample Application

• Note that the application category (for example, Sample Application) displays beneath the application title. You canidentify installed applications by the green Installed tag that displays beneath the product category.

• Locate the application to be installed.

• Click the application image.

• A summary page appears.

• Click Install Application.

• Select an Authentication scheme and click Next.

• Click Install Application again.

• A success message appears.

•  To run the application, click the Run Application icon.

• Enter the appropriate login credentials:

– Username - Enter your workspace username.

– Password - Enter your workspace password.

– Click Login.

Page 71: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 71/101

[email protected] http://www.DelveOracle.com 71

Session 3: Build An Database Application – Deleting Application

•  To delete an application from Application Builder:

• On the Workspace home page, click the Appl ication Builder  icon.

• Select an application.

• When Application Builder appears, verify the application ID and name at the top of the page.

• On the Tasks list, click Delete this Appli cation.

• When prompted, click Permanently Delete Now.

Page 72: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 72/101

[email protected] http://www.DelveOracle.com 72

Session 4: Creating Reports

• Create Reports using Wizard

– Creates a report without requiring anySQL knowledge. Select the appropriateschema, table, columns, and result setdisplay.

– Select Wizard, select the title of theReport.

– Select the Table.

– Select the Column

– Select the Template

– Create the Region

Page 73: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 73/101

[email protected] http://www.DelveOracle.com 73

Session 4: Creating Reports

• Creating an Interactive Report

• Interactive reports require nothing more than a SQL query. APEX handles the rest. You’ll start by creating a newpage, tab, and interactive report all at once on a view of your Ticket System data.

– 1. Run any page in your application.

– 2. Click Create in the Developer’s Toolbar.

– 3. Select New Page and click Next.

– 4. Select Report and click Next.

– 5. Select Interactive Report and click Next.

– 6. Enter 300 for the page number, Analysis for the page name, and set the region template to Reports Region,as shown in Figure.

– 7. Enter Analysis for the region name, and click Next

Page 74: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 74/101

[email protected] http://www.DelveOracle.com 74

Session 4: Creating Reports

– 8. Set the Tab Options.

Page 75: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 75/101

[email protected] http://www.DelveOracle.com 75

Session 4: Creating Reports

Page 76: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 76/101

[email protected] http://www.DelveOracle.com 76

Session 4: Creating Reports

Page 77: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 77/101

[email protected] http://www.DelveOracle.com 77

Session 4: Creating Reports

Page 78: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 78/101

[email protected] http://www.DelveOracle.com 78

Session 4: Creating Reports

Page 79: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 79/101

[email protected] http://www.DelveOracle.com 79

Session 4: Creating Reports

Page 80: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 80/101

[email protected] http://www.DelveOracle.com 80

Session 4: Creating Reports

Page 81: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 81/101

[email protected] http://www.DelveOracle.com 81

Session 4: Creating Reports

Page 82: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 82/101

[email protected] http://www.DelveOracle.com 82

Session 4: Creating Reports

Page 83: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 83/101

[email protected] http://www.DelveOracle.com 83

Session 4: Creating Reports

Page 84: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 84/101

[email protected] http://www.DelveOracle.com 84

Session 4: Creating Reports

Page 85: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 85/101

[email protected] http://www.DelveOracle.com 85

Session 4: Creating Reports

Page 86: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 86/101

[email protected] http://www.DelveOracle.com 86

Session 4: Creating Reports

Page 87: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 87/101

[email protected] http://www.DelveOracle.com 87

Session 4: Creating Reports

Page 88: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 88/101

[email protected] http://www.DelveOracle.com 88

Session 4: Creating Reports

Page 89: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 89/101

[email protected] http://www.DelveOracle.com 89

Session 4: Creating Reports

Page 90: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 90/101

[email protected]://www.DelveOracle.com

90

Session 4: Creating Reports

Page 91: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 91/101

[email protected]://www.DelveOracle.com

91

Session 4: Creating Reports

Page 92: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 92/101

[email protected]://www.DelveOracle.com

92

Session 4: Creating Reports

Page 93: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 93/101

[email protected] http://www.DelveOracle.com93

Session 4: Creating Reports

Page 94: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 94/101

Page 95: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 95/101

[email protected] http://www.DelveOracle.com95

Session 4: Creating Reports

• Creating an Classic Report

Page 96: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 96/101

[email protected] http://www.DelveOracle.com 96

Session 4: Creating Reports

Page 97: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 97/101

[email protected] http://www.DelveOracle.com 97

Session 4: Creating Reports

Page 98: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 98/101

[email protected] http://www.DelveOracle.com 98

Session 4: Creating Reports

Page 99: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 99/101

[email protected] http://www.DelveOracle.com 99

Session 4: Creating Reports

• Creating a Link to another page:

– Navigate to the appropriate Report Attributes.

– Under Column Attributes, locate the column to contain the link.

– Click the Edit icon next to the column name.

–  The Column Attributes page appears.

– Scroll down to Column Link.

–  To create a column link to another page:

• From Target, selectPage in this Appl ication.

• (Optional) In Link Attributes, specify additional column linkattributes that will be included in the <a href=>tag

• In Link Text, enter the text to be displayed as a link, specify an image tag,or pick from the list of default images.

• In Page, specify the target page number. To reset the pagination for this page, select Reset Pagination.

• In Request, specify the request to be used.

• In Clear Cache, specify the pages (that is, the page numbers) on which to clear cache. You can specifymultiple pages by listing the page numbers in a comma-delimited list.

• Use the Name and Value fields to specify session state for a specific item.

– Click Apply Changes.

Page 100: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 100/101

[email protected] http://www.DelveOracle.com

Contact Information

Sunil [email protected]@delveoracle.com

100

Questions?

Page 101: APEX 4.2 - Day1

7/30/2019 APEX 4.2 - Day1

http://slidepdf.com/reader/full/apex-42-day1 101/101

Session 5: Hands On

– Exercise 1: Create/Request for a Workspace

– Exercise 2: Explore SQL Workshop, Browse, Create & Modify objects

– Exercise 3: Create an Application, Reports, Pages and Regions.