12 January, 2009

Multiple APEX regions in the same size (width)

. 12 January, 2009

First of all (I know its a bit late) I wish everybody a healthy and successfully year 2009.
Now let's talk about APEX...

Have you every came about the problem that you have several reports on a page and they all show up in a different size. Most annoying is the different sizes of the width.

What you can do to bring them all into the same width is to edit the template region or to copy it to a new one and change some html attributes. Unfortunately every theme has there own unique source code. So you need to find out the right settings yourself. In my example I used the theme Centered - 7 and changed the following definition line under Home > Application Builder >Application #ID# > Shared Components > Edit Region Template > Defintion:


<td align="center" colspan="2">#BODY#</td>

To:

<td align="center" colspan="2" #REGION_ATTRIBUTES#>#BODY#</td>


Next is to edit your regions. Add style="width:600px" at the region attributes.

Here an example: http://apex.oracle.com/pls/otn/f?p=25472:29

Just a tip:
To find out where you need to add the attribute #REGION_ATTRIBUTES# use Firefox with Firebug.

2 Comments:

Johannes said...

Funny just yesterday out client asked us to make the regions the same size.

Thanks we will use it right away.

Johannes.

ps. what template are you using for your demo app?

Tobias Arnhold said...

Hi Johannes,
I think at is one of the reasons why I write this stuff! ;D

I used Theme 7.

Regards,

Tobias

 

Visitor counter