Translate

Monday, 4 April 2011

Oracle: HTML Personalisations (Raw Text and URL Include)

These first simple extensions shows how to add a bespoke 'Message Of The Day' banner to the Oracle Application Home Page.


Example 1 – Raw Text.

Enable the profile option Personalize Self-Service Defn at user level, this enables the personalisation links on HTML forms and pages (after logging out and back in).

On the Application Home page select the Personalize "Home Contenttable” link.

Create a new item within the table layout "Home Contenttable" region.

Select the Item Style Raw Text, enter an ID (e.g.: xx_motd) and enter the static text or HTML code in Text field.


Example 2 – URL Include.

Create an htm file within the $OA_HTML (e.g.: xx_motd.htm) directory on the application server (see below for sample code).

Enable personalisation links and select Personalize "Home Contenttable" then create an item with an Item Style of URL include, enter an ID (e.g.: xx_motd) and in the Source URI enter the path to your htm file (e.g.: /OA_HTML/xx_motd.htm).

Example xx_motd.htm
<!-- ---------------------------------- -->
<!-- dbdrv: none                          -->
<!-- File : xx_motd.htm               -->
<!-- Author : C Hammond             -->
<!-- Creation Date : 10-AUG-2010 -->
<!-- Message Of The Day HTML Plugin -->
<!-- ---------------------------------- -->
<td id="MessageOfTheDay" class="x9k" valign="top" width="34%">
 <table id="MessageOfTheDay" class="xn" cellpadding="0" cellspacing="0" style="border:1px #87B4D9 solid;" width="100%">
 <tr>
  <td class="xp" style="background-image:url (/OA_HTML/cabo/images/swan/headingBarBg.gif);">
  <h2 class="x75">
  <!-- Plugin Header: -->
  Message Of The Day
  <!-- -->
  </h2>
  </td>
 </tr>
 <tr>
  <td style="background-color:#D9E5EF">
  <br>
  <font face="Tahoma" size="2px" color="#147590">
  <div style="padding-left: 0.5em;">
  <!-- Plugin Text: -->
  <STRONG>Latest News</STRONG>
  <br>
  Your message goes here ...
  <!-- -->
  </div>
  </font>
  <br>
  </td>
 </tr>
 </table>
</td>

No comments:

Post a Comment