25. Table Layout Region in OAF (Table Region in OAF)

OAF Region Styles: Different Types of Regions in an OAF Page

Introduction

An Oracle Application Framework (OAF) page is constructed from multiple regions, and each region serves a specific purpose with its own layout and behavior. Choosing the right region style is essential for building a well-structured, user-friendly page that meets your design requirements.

This guide explores the most commonly used OAF region styles, explains their purpose, and provides practical examples of how and when to use each one. Understanding these region styles is fundamental to designing effective OAF pages.


Overview of OAF Region Styles

The following are some of the most widely used region styles in OAF development:

#Region StylePrimary Purpose
1Default Single ColumnSimple vertical stacking of items
2TableMulti-column layouts with flexible row structures
3Page Button BarStandard placement of action buttons
4QuerySearch and filter interface
5Stack LayoutLayered or tabbed content
6Advanced TableComplex, feature-rich data grids
7Default Double ColumnTwo-column form layouts

1. Default Single Column Region

Purpose

The Default Single Column Region is the simplest region style. Anything created under this region is arranged in a single column structure, stacked vertically on the page.

When to Use

  • Simple forms with one field per row

  • Pages where vertical stacking is the natural layout

  • Basic data entry screens

Visual Representation

text
┌─────────────────────────────┐
│  Item 1                     │
├─────────────────────────────┤
│  Item 2                     │
├─────────────────────────────┤
│  Item 3                     │
├─────────────────────────────┤
│  Item 4                     │
└─────────────────────────────┘

Key Characteristics

  • Items appear one below the other

  • No horizontal arrangement of items

  • Simplest region style to configure


2. Table Region

Purpose

The Table Layout Region provides the flexibility to create any number of columns in each row of the OAF page layout structure. Unlike the single column region, each row can have a different number of columns, giving you complete design freedom.

How It Works

The Table Layout works through a hierarchy of three regions:

RegionPurpose
TableLayoutThe top-level container holding multiple rows
rowLayoutRepresents a single row within the table
cellFormatRepresents a single column/cell within a row

The Hierarchy

text
TableLayout
├── rowLayout (Row 1)
│   ├── cellFormat (Column 1)
│   ├── cellFormat (Column 2)
│   └── cellFormat (Column 3)
├── rowLayout (Row 2)
│   ├── cellFormat (Column 1)
│   └── cellFormat (Column 2)
└── rowLayout (Row 3)
    ├── cellFormat (Column 1)
    ├── cellFormat (Column 2)
    ├── cellFormat (Column 3)
    └── cellFormat (Column 4)

Key Characteristics

  • TableLayout can contain multiple rowLayout regions, each corresponding to a row

  • rowLayout contains multiple cellFormat regions, each corresponding to a column

  • Inside each cellFormat region, you can add different items

  • Each row can have a different number of columns, independent of other rows

Visual Representation

text
┌─────────────┬─────────────┬─────────────┐
│  Row 1      │  (3 cols)   │             │
├─────────────┼─────────────┼─────────────┤
│  Row 2      │  (2 cols)   │             │
├─────────────┼─────────────┼─────────────┤
│  Row 3      │  (4 cols)   │             │
└─────────────┴─────────────┴─────────────┘

When to Use

  • Complex form layouts with varying column arrangements

  • Pages requiring precise control over item positioning

  • Forms where different rows need different numbers of fields


3. Page Button Bar Region

Purpose

The Page Button Bar Region is a specialized region style designed specifically for OAF buttons. Buttons created under this region style appear in a specific, standard position on the page.

Key Characteristics

  • Buttons appear at the top and bottom of the page

  • Buttons are positioned on the right-hand side of the page

  • Provides a consistent, Oracle-standard button placement

  • Automatically handles button rendering and positioning

Visual Representation

text
┌─────────────────────────────────────────────┐
│                                    [Save]   │  ← Top right
├─────────────────────────────────────────────┤
│                                             │
│              Page Content                   │
│                                             │
│                                             │
├─────────────────────────────────────────────┤
│                                    [Save]   │  ← Bottom right
└─────────────────────────────────────────────┘

How to Create a Button in the Page Button Bar Region

Step 1: Create the Page Button Bar Region

  1. Right-click on PageLayoutRN

  2. Select New → Region

  3. A new region (region1) is created

  4. In the Property Inspector, set:

    • ID: PageButtons

    • Region Style: pageButtonBar

Step 2: Create the Button Item

  1. Right-click on the PageButtons region

  2. Select New → Item

  3. An item (item1) is created under the PageButtons region

  4. In the Property Inspector, set:

    • ID: Save

    • Item Style: submitButton

When to Use

  • Standard action buttons (Save, Apply, Cancel, Submit)

  • Pages requiring Oracle-standard button placement

  • Forms where buttons should appear consistently


4. Query Region

Purpose

The Query Region provides a search and filter interface, allowing users to enter search criteria and retrieve matching records.

Key Characteristics

  • Displays search fields for user input

  • Includes a Go button to execute the search

  • Results are displayed in an associated results region

  • Commonly used with Advanced Table regions

Typical Structure

text
┌─────────────────────────────────────────────┐
│  Search Criteria                            │
│  ┌─────────────┐  ┌─────────────┐  [Go]    │
│  │  Field 1    │  │  Field 2    │          │
│  └─────────────┘  └─────────────┘          │
├─────────────────────────────────────────────┤
│  Results                                    │
│  ┌─────────────────────────────────────┐   │
│  │  Result Row 1                       │   │
│  │  Result Row 2                       │   │
│  │  Result Row 3                       │   │
│  └─────────────────────────────────────┘   │
└─────────────────────────────────────────────┘

When to Use

  • Search pages

  • List pages with filtering capability

  • Any page where users need to query data


5. Stack Layout Region

Purpose

The Stack Layout Region allows multiple regions to be stacked on top of each other, with only one visible at a time. This is commonly used for tabbed or wizard-style interfaces.

Key Characteristics

  • Multiple regions occupy the same space

  • Only one region is visible at a time

  • Users switch between regions using tabs or navigation

  • Useful for organizing related but distinct content

Visual Representation

text
┌─────────────────────────────────────────────┐
│  [Tab 1]  [Tab 2]  [Tab 3]                  │
├─────────────────────────────────────────────┤
│                                             │
│         Content of Active Tab               │
│                                             │
│                                             │
└─────────────────────────────────────────────┘

When to Use

  • Tabbed interfaces

  • Wizard-style multi-step forms

  • Organizing large amounts of related content

  • Reducing page clutter


6. Advanced Table Region

Purpose

The Advanced Table Region is a powerful, feature-rich region for displaying data in a grid format with extensive functionality.

Key Features

FeatureDescription
SortingClick column headers to sort data
FilteringBuilt-in search and filter capabilities
PaginationNavigate through large datasets
SelectionSingle or multiple row selection
Inline EditingEdit data directly in the grid
Column CustomizationShow/hide columns, reorder
ExportExport data to Excel or other formats

When to Use

  • Displaying large datasets

  • Pages requiring sorting, filtering, and pagination

  • Data grids with complex interactions

  • Any page where users need to work with tabular data


7. Default Double Column Region

Purpose

The Default Double Column Region arranges items in a two-column layout, with labels in the first column and input fields in the second column.

Visual Representation

text
┌─────────────────┬─────────────────────────┐
│  Label 1        │  [Input Field 1]        │
├─────────────────┼─────────────────────────┤
│  Label 2        │  [Input Field 2]        │
├─────────────────┼─────────────────────────┤
│  Label 3        │  [Input Field 3]        │
├─────────────────┼─────────────────────────┤
│  Label 4        │  [Input Field 4]        │
└─────────────────┴─────────────────────────┘

When to Use

  • Standard form layouts

  • Data entry pages

  • Any page where labels and fields should be aligned

Key Characteristics

  • Labels appear in the left column

  • Input fields appear in the right column

  • Consistent alignment across all rows

  • Most common layout for data entry forms


Comparison of Region Styles

Region StyleLayoutBest ForComplexity
Default Single Column1 columnSimple formsLow
TableVariable columns per rowComplex layoutsHigh
Page Button BarRight-aligned buttonsAction buttonsLow
QuerySearch + ResultsSearch pagesMedium
Stack LayoutLayered/TabbedTabbed interfacesMedium
Advanced TableData gridLarge datasetsHigh
Default Double Column2 columnsStandard formsLow

Choosing the Right Region Style

When designing an OAF page, consider the following:

  1. Purpose of the Page: Is it a form, a search page, or a data grid?

  2. User Interaction: How will users interact with the data?

  3. Data Volume: How much data will be displayed?

  4. Layout Requirements: Do you need single, double, or multi-column layouts?

  5. Oracle Standards: Follow Oracle's UI standards for consistency

Decision Guide

If you need...Use...
Simple vertical formDefault Single Column
Complex multi-column layoutTable
Standard action buttonsPage Button Bar
Search interfaceQuery
Tabbed contentStack Layout
Data grid with sorting/filteringAdvanced Table
Standard data entry formDefault Double Column

Best Practices

PracticeDescription
Use Standard Region StylesStick to Oracle-standard styles for consistency
Nest Regions AppropriatelyUse the right hierarchy (e.g., TableLayout → rowLayout → cellFormat)
Name Regions DescriptivelyUse meaningful IDs (e.g., SearchRN, ResultsRN)
Keep Layouts SimpleAvoid over-nesting regions, which can impact performance
Test Across BrowsersVerify layout renders correctly in different browsers
Follow UI GuidelinesAdhere to Oracle's UI standards for EBS applications

Summary

OAF region styles are the building blocks of page layout in Oracle Application Framework. Each region style serves a specific purpose:

  1. Default Single Column: Simple vertical stacking

  2. Table: Flexible multi-column layouts with varying columns per row

  3. Page Button Bar: Standard button placement (top/bottom right)

  4. Query: Search and filter interface

  5. Stack Layout: Layered or tabbed content

  6. Advanced Table: Feature-rich data grids

  7. Default Double Column: Standard two-column form layouts

Understanding these region styles—and knowing when to use each—is essential for designing effective, user-friendly OAF pages. By choosing the right region style for each part of your page, you can create applications that are both functional and visually appealing, while adhering to Oracle's UI standards.

The Page Button Bar region, in particular, demonstrates how OAF provides specialized regions for common UI patterns, ensuring consistency across all Oracle E-Business Suite applications.


References

  • Oracle E-Business Suite Documentation: OA Framework Developer's Guide

  • Oracle JDeveloper Documentation: Available in the jdevdoc folder

  • Oracle Application Framework: Official Oracle documentation

  • Related Guides: Creating a Hello World Page in OAF, Creating a Pop List in OAF, Creating an LOV in OAF

No comments:

Post a Comment