Wednesday, May 12, 2010

APEX: Report Column Wrapping

APEX 3.2.1.00.12
- Template 12
Database: 10gR2

Just a quick note, mostly for myself.

I was asked about getting a report column to wrap. The method being used was the CSS Style property of the Report Attribute (Column). The report template was the Standard Alternating Row Colors.

The report looks like this:



Very ugly, I know.

So how do you fix this?

You can fiddle with the CSS Style (I'm lazy) if you want, or you can do something like this.

In the HTML Expression box:



Add the following:
<table style="width:200px;">
<tr>
<td>#X#</td>
</tr>
</table>
That #X# is the column/report name.

Using that will get you this:



The ideal would be to get the correct CSS in there, but like I said, I'm lazy. This worked for me going back to 1.5 (HTMLDB) on Template 12.

3 comments:

Anonymous said...

thank you very much for your solution. it helped me a lot :)

Anonymous said...

thank you very much for your solution. it helped me a lot :)

Anonymous said...

Thanks !! This helped me in resolving my issue