Introduction
When building
data-driven dashboards and reports in Oracle APEX, displaying descriptive
region headings improves the user interface. By default, Oracle APEX renders the
region title as a plain header. However, developers often need more control
over how that title looks, especially when working with Interactive Grid or
Classic Report regions embedded in complex page layouts. Without this control,
headings can appear duplicated or unstyled, which looks unprofessional.
This article
provides a step-by-step approach to displaying a custom styled heading such as
"Service Request Master" above a report region in Oracle APEX.
Prerequisite
· An Oracle APEX page containing:
One Interactive Grid region named Service Request Master
One Detail region named Service Request Detail
· Basic familiarity with APEX Page Designer
Objective
When you want to show a styled heading
like "Service Request Master" above a report region, a common mistake
is to add both a Static Content HTML region and set the region's built-in Title
field simultaneously. This results in a duplicate heading one from the HTML and
one from the region title which looks
unprofessional.
Solution
Step 1: Set the Report Region Title
In Page Designer, click your report region (e.g., Service Request Master). Under Identification,
set the Title
field to match your region name:
Service Request MasterAdd
a styled heading above your report region:
1
Right-click your page in the Page Designer tree → Create Region Below

2 In Page Designer, click your report region. Under Identification, set the Title field to: Service Request Master
Note: The Title
field is mandatory in APEX and cannot be left blank.
3
Set Type to Static Content
4 Under Source → HTML Content, paste the following:
<div style="
background: #2596be;
padding: 15px 25px;
border-radius: 10px;
text-align: center;
box-shadow: 0 4px 10px rgba(0,0,0,0.2);
">
<h2 style="
color: white;
font-weight: bold;
margin: 0;
letter-spacing: 1px;
">
Service Request Master
</h2>
</div>
5
Set the region sequence so it appears just above your report
region
Step 3: Hide the Built-in Title Using Template Options
To prevent the duplicate heading, hide the report region's
built-in title:
1.
Click your report region in Page Designer
2.
Go to Appearance → Template Options → Click the button
3.
Find the Header setting and select Hidden but accessible
4. Click OK and Save the page
A spacing gap
often appears between the Static Content heading region and the report region
below it. To fix this:
- Run the page
in Oracle APEX
- Hover over
the Static Content heading region a
pencil (✏️) icon will
appear in the top-right corner of the region
- Click the
pencil icon to open Quick Edit
- In the Quick
Edit panel, click Template Options
- Set Top
Margin to None
- Set Bottom
Margin to None
- Click OK
- Save the page
and refresh to confirm the gap is removed
Applying the Same Steps to the Detail Region
Repeat Steps 1 through 4 above for the Service Request Detail region. In
the HTML Content, replace the heading text with: Service Request Detail
<div style=" background: #2596be; padding: 15px 25px; border-radius: 10px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.2);"> <h2 style=" color: white; font-weight: bold; margin: 0; letter-spacing: 1px; "> Service Request Detail </h2></div>
Save the page and run it to verify that both the Master and Detail
headings display correctly with no duplication and no spacing gaps.
Conclusion
Displaying a clean, styled region
heading in Oracle APEX requires a combination of using the built-in region
Title (to satisfy APEX validation), hiding it via Template Options, and adding
a separate Static Content region with custom HTML. This approach gives full
control over the visual style while maintaining compatibility with the
Universal Theme.




Comments
Post a Comment