Responsive Web Application Development with Theme 25 in Application Express 5.0


Options



Last updated: 04/17/15 01:30 pm EDT

Overview

Purpose

This tutorial shows you how to use Theme 25 to create a responsive web application in Application Express Release 5.0.

Time to Complete

Approximately 20 mins

Introduction

Responsive Web Design is an approach to web design in which a designer intends to provide an optimal viewing experience—easy reading and navigation with a minimum of resizing, panning, and scrolling—across a wide range of devices (from desktop computer monitors to mobile phones). Oracle APEX 5.0 handles responsive design through Theme 25. Theme 25 has support for all screen sizes and uses a flexible grid layout that adjusts based on the device you are using.

Prerequisites

Before starting this tutorial, you should:

  • Have access to or have Installed Oracle Database 11g or later.
  • Have access to or have installed the Oracle Application Express 5.0.

Creating a Database Application Using Blue Responsive Theme

To create the Responsive Web Application, perform the following steps:

  1. On the Application Express Home Page, click Application Builder down arrow and select Database Applications.

    alt description here
  2. Click Create >.

    alt description here
  3. Select Desktop > and click Next.

    alt description here
  4. Enter Responsive Web Application as the Name. Click the up arrow in the Theme field to select the responsive theme.

    alt description here
  5. Select All Themes from select list.

    alt description here
  6. Select the Blue Responsive theme.

    alt description here
  7. Click Next >.

    alt description here
  8. Click Add Page to add a page to the application.

    alt description here
  9. Select Form icon.

    alt description here
  10. Select Home(1) for Subordinate to Page and select EMP for the Table Name. Click Add Page.

    alt description here
  11. Click Next >.

    alt description here
  12. Accept the default and click Next >.

    alt description here
  13. Accept the default and click Next >.

    alt description here
  14. Click Create Application.

    alt description here
  15. The application has created successfully. Click Shared Components.

    alt description here
  16. Click Lists under navigation.

    alt description here
  17. Click Create.

    alt description here
  18. Select option From Scratch. ClickNext.

    alt description here
  19. For Name enter EMP. Click Next.

    alt description here
  20. For List Entry Label enter EMP. For Target Page ID or Custom URL Enter 2 . Click Next.

    alt description here
  21. Click Create List.

    alt description here
    alt description here
  22. Click the 1 - Home page.

    alt description here
  23. Under Rendering section, right-click Regions and select Create Region.

    alt description here
  24. Under Region section, enter Navigation for the Title . For Type select List . For List select EMP and click Save. Select Yes for Start New Row.

    alt description here
  25. Under Rendering section, right-click Regions and select Create Region.

    alt description here
  26. Under Region section, enter Region 1 for the Title . Select Yes for Start New Row. Click Save.

    alt description here
  27. Right-click Regions and select Create Region. Enter Region 2 for the Title and click Save.

    alt description here
  28. Right-click Regions and select Create Region. Enter Region 3 for the Title and click Save.

    alt description here
  29. Right-click Regions and select Create Region. Enter Region 4 for the Title and click Save.

    alt description here
  30. For the Regions 2, 3, and 4 select No for the Start New Row, select Yes for New Column and enter 3 for Column Span in the Grid Layout. Click Save.

    alt description here
  31. Click Save and Run Page.

    alt description here
  32. Enter obe for Username and Password and click Login.

    alt description here
  33. The application home page is displayed. Click the Edit Page 1 link in the developer toolbar.

    alt description here
  34. Click Breadcrumb and select Delete to delete the breadcrumb region from the Home page.

    alt description here
  35. Click Save and Run Page.
    alt description here
  36. The breadcrumb has been removed. Click the Emp link.

    alt description here
  37. This is a standard form. To change the region to alert region, click the Edit Page 2 link in the developer toolbar.

    alt description here
  38. Click EMP under page rendering section.

    alt description here
  39. Under Region section, select Alert Region for the Template. In the Grid Layout, select 3 for Column to start the region from offset of two columns and 8 for Column Span.

    alt description here
  40. Click Save and Run Page.

    alt description here
  41. The EMP form is displayed in the center. Click the Home breadcrumb.

    alt description here
  42. Resize the browser to check the responsive functionality of the application. This size fits for the I pads,Tablets, etc.

    alt description here
  43. Resize the browser to be smaller. The regions are now placed on top of each other which fits best for the mobile devices. Click Emp link under Navigation.

    alt description here
  44. Notice that the labels have shifted above the fields making it easier to view the form fields and the labels together at once. The breadcrumb points back to the Home page.

    alt description here

Summary

In this tutorial, you learned how to use Theme 25 to create a responsive web application in Application Express Release 5.0.

Resources

Credits

  • Lead Curriculum Developer: Dimpi Sarmah