Friday, 4 October 2013

Wrap Text In Report Column Using CSS & HTML in Oracle APEX


Suppose we have a classic report on Oracle APEX.




Now, we needed to modify the report so that the "Responsibility" column would be wrapped text rather than truncated.

Click on 'Edit Report Columns -> Report Attribute Tab -> Edit RESPONSIBILITY column -> Column Formatting -> HTML Expression : 








We are to add below script in HTML Expression:  (Adjust the pixels for your own needs.) :
<html>
<head>
<style> 
p.test

width:500px; display:block; white-space:normal; word-wrap:break-word;
}
</style>
</head>
<body>
<p class="test"> <span> #RESPONSIBILITY#</span> </p>
</body>
</html>




(If image is not displayed properly, please click on the that image to view.)

4 comments:

  1. Thanks. This solved my problem.

    ReplyDelete
  2. Great it worked perfectly.. Thank you.

    ReplyDelete
  3. Thanks for sharing this great information on Oracle APEX. Actually I was looking for the same information on internet for Oracle Apex Interview Questions and Answers and came across your blog. I am impressed by the information that you have on this blog. It shows how well you understand this subject, you can learn more about Oracle PPM Cloud by attending Oracle APEX Training.

    ReplyDelete
  4. Thanks for sharing this blog. The content is beneficial and useful. Very informative post. Visit here to learn more about Data Warehousing companies and Data analytics Companies. I am impressed by the information that you have on this blog. Thanks once more for all the details.Visit here for Top Big Data Companies.

    ReplyDelete