Building a Websheet Application in Application Express 4.1 This tutorial contains the following sections: Purpose Time to Complete Overview Prerequisites Creating and Running a Websheet Application Adding a Text Section to a Page Adding Annotations to a Page Displaying an Image Creating a Data Grid Creating a New Page as a Copy Creating a Data Section Based on Data From a Data Grid Creating a Chart Section Based on Data From a Data Grid Creating a Section Navigation Viewing a Page in Presentation Mode Creating Page Navigation Viewing Page History Searching in a Websheet Creating Oracle Application Express Users Sharing Websheets Using an Access Control List Summary Resources Purpose This tutorial shows you how to build, use, and customize a Websheet Application in Oracle Application Express 4.1. Note: Some screenshots in this tutorial may be slightly different depending on what browser you use. Time to Complete Approximately 60 minutes Overview Websheet applications are collections of pages that support wiki syntax. Each page can be organized into sections. Pages can also be organized into a hierarchy. Sections can be edited using a friendly editor. Websheets provide the following functionality: Create and share content over the web using your browser. Organize web pages in a hierarchy and cross-link pages (using [[ pagename ]] syntax) Create and manage tabular data using an embedded feature called Data Grids. Create interactive reports using SQL on existing data structures in your database. Expose Data Grid and Report data within pages as a chart or a report Annotate pages with files, tags and notes. Associated images can be shown inline within page content (using [[image: filename]] syntax) Search page content (using search box in upper right hand) Manage who can login and once logged in, who can read, write or administer the application (authentication and authorization This tutorial shows the developer how to create and customize a Websheet Application. Page 1 of 42 Building a Websheet Application Application Express 4.1 11/21/2011 http://www.oracle.com/webfolder/technetwork/tutorials/obe/db/apex/r41/websheets/crwe...
42
Embed
Building a Websheet Application in Application Express 4.1
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Building a Websheet Application in Application Express 4.1
This tutorial contains the following sections:
Purpose
Time to Complete
Overview
Prerequisites
Creating and Running a Websheet Application
Adding a Text Section to a Page
Adding Annotations to a Page
Displaying an Image
Creating a Data Grid
Creating a New Page as a Copy
Creating a Data Section Based on Data From a Data Grid
Creating a Chart Section Based on Data From a Data Grid
Creating a Section Navigation
Viewing a Page in Presentation Mode
Creating Page Navigation
Viewing Page History
Searching in a Websheet
Creating Oracle Application Express Users
Sharing Websheets Using an Access Control List
Summary
Resources
Purpose
This tutorial shows you how to build, use, and customize a Websheet Application in Oracle Application Express 4.1.
Note: Some screenshots in this tutorial may be slightly different depending on what browser you use.
Time to Complete
Approximately 60 minutes
Overview
Websheet applications are collections of pages that support wiki syntax. Each page can be organized into sections. Pages can also be organized into a hierarchy. Sections can be edited using a friendly editor.
Websheets provide the following functionality: Create and share content over the web using your browser.Organize web pages in a hierarchy and cross-link pages (using [[ pagename ]] syntax)Create and manage tabular data using an embedded feature called Data Grids.Create interactive reports using SQL on existing data structures in your database.Expose Data Grid and Report data within pages as a chart or a reportAnnotate pages with files, tags and notes. Associated images can be shown inline within page content (using [[image: filename]] syntax)Search page content (using search box in upper right hand)Manage who can login and once logged in, who can read, write or administer the application (authentication and authorization
This tutorial shows the developer how to create and customize a Websheet Application.
Page 1 of 42Building a Websheet Application Application Express 4.1
Install Oracle Database 11g.Install Oracle Application Express 4.1.Download and unzip the files.zip file into a working directory to use during this tutorial.
Creating and Running a Websheet Application
To create a Websheet Application log in to your Application Express workspace and perform the following steps:
1 . Click the down arrow in the Application Builder tab and select Websheet Applications.
2 . Click Create >.
3 . Select Websheet and click Next >.
Page 2 of 42Building a Websheet Application Application Express 4.1
In this topic, you will create a text section called Overview in the Home page. The text to enter in the section is available in the overview.txt file. Perform the following steps:
1 . Click the Create button and select New Section.
2 . Ensure Text is selected and click Next >.
Page 5 of 42Building a Websheet Application Application Express 4.1
You can include images in your pages by using the syntax [[IMAGE:<filename>]]. The image that you are referring to should be added to the files section of the page. To display an image in a page, perform the following section.
1 . Click the plus (+) icon in the Files section of the page.
2 . Click Choose File and locate the hr_logo image from the files folder. Then, click Add File.
3 . The hr_logo image is added to the page.
4 . Click the Edit button for the Overview section.
Page 11 of 42Building a Websheet Application Application Express 4.1
Data Grids allow you to create tabular data. You can create a data grid from scratch or by copy-pasting data from a spreadsheet.
Creating a Data Grid From Scratch
Creating a Data Grid From a Spreadsheet
Creating a Data Grid From Scratch
To create a data grid from scratch, perform the following steps:
1 . From the Control Panel, click New Data Grid.
2 . Ensure that From Scratch is selected and click Next >.
3 . Enter Deadlines for Name. Enter Event in the first Column Name field. Enter Date in the second Column Name field and Date for Type. Then, click Create Data Grid.
Page 13 of 42Building a Websheet Application Application Express 4.1
In this section, you will create a new page as a copy of the existing Home page and customize the new page. To create a new page, perform the following steps:
1 . Click the Create button and select New Page as a Copy.
2 . Enter Reports for New Page Name and click Copy Page.
3 . Click View New Page.
Page 18 of 42Building a Websheet Application Application Express 4.1
3 . Select Deadlines for Data Grid and select Primary Report for Report Settings to Use. Enter Deadlines For This Month in the Title field and select Next >.
4 . Click Create Section.
Page 21 of 42Building a Websheet Application Application Express 4.1
3 . Accept the default for chart type and click Next >.
4 . Select Tasks for Data Grid and Primary Report for Report Settings to Use. Enter Cost Per Project for Section Title and click Next >.
5 . Select PROJECT for Chart Label and COST for Chart Value. Enter Projects for Axis Title for Label and Cost for Axis Title for Value. Then, click Next >.
Page 23 of 42Building a Websheet Application Application Express 4.1
4 . Enter Sections for Title and click Create Section.
5 . The navigation section is created, but it is the last section on your page. You want to move the navigation section to the top of the page. Click Edit Sections from the Control Panel.
Page 26 of 42Building a Websheet Application Application Express 4.1
In order to share Websheets, it is necessary to define appropriate access control for the other Oracle Application Exprses users. In this topic, you will create three Oracle Application Express users. Perform the following steps:
1 . Click the Builder icon at the top-right of the websheet.
2 . Click the Administration tab and select Manage Users and Groups.
Page 35 of 42Building a Websheet Application Application Express 4.1
4 . Enter WS_ADMIN for Username and [email protected] for Email Address. Ensure that User is an administrator is set to Yes and enter obe for Password (not shown in the screenshot). Then, click Create and Create Another.
5 . Enter WS_CONTRIBUTOR for Username and [email protected] for Email Address. Select No for User is an administrator and enter obe for Password (not shown in the screenshot). Then, click Create and Create Another.
Page 36 of 42Building a Websheet Application Application Express 4.1
6 . Enter WS_READER for Username and [email protected] for Email Address. Select No for User is an administrator, No for User is a Developer and enter obe for Password (not shown in the screenshot). Then, click Create.
Sharing Websheets Using an Access Control List
In this topic, you will create an Access Control List for the websheet. Perform the following steps:
1 . Click the Applicaiton Builder tab and select Websheet Applications.
Page 37 of 42Building a Websheet Application Application Express 4.1
8 . Enter ws_admin for Username, Administrator for Privilege, and click Create.
9 . Now you need to change your Authorization Scheme to use the Access Control List you have just created. Click Administration and select Application Properties.
10 . Expand the Authorization region and select Custom.
11 . Click Apply Changes.
Page 40 of 42Building a Websheet Application Application Express 4.1
15 . Note that the options to create and edit content are disabled.
Summary
In this tutorial, you have learned how to:
Create a websheet applicationCreate pages and section in a websheet applicationAnnotate websheet pages with tags, notes, and filesDisplay an imageCreate a data grid from scratch and from a spreadsheetCreate data and chart sectionsCreate page and section navigationView a page in presentation modeView page historySearch for content in a websheetShare websheets using Access Control List
ResourcesOracle Application Express homepage on OTN.Oracle Learning LibraryOracle University