Tuesday, 24 December 2013

Dynamically calling a logo in XML Publisher

In the previous lesson we learnt how to insert a logo statically but in this lesson we are going learn how to insert a logo dynamically.
OA Media Directory Reference
Note: This method only applies to Oracle E-Business Suite Installations.
  1. Insert a dummy image in our template
  2. In the Format Picture dialog box select web tab. Enter the following syntax in the Alternative Text region to reference the OA_MEDIA directory:
                                                                   url:{‘${OA_MEDIA}/< image_name>’}
For example, enter
                                                                   url:{‘${OA_MEDIA}/ORACLE_LOGO.gif’}
We can see step by step process.
Our previous lesson RTF is shown below with static logo. Here the logo which acts as dummy
Give double click on logo then we will get below window
From the above picture we can see there is web tab. Click on web tab then we can see below window
In the Alternative text we are going to write OA_MEDIA directory which is shown below
We had written

Now we have to publish the report

Click on Template Builder => Preview => HTML/PDF/Excel/RTF (any format).
We can get below output
In this way we can insert a logo dynamically

3 comments:

  1. Have you had sporadic issues where the dummy image gets displayed rather than the image from $OA_MEDIA using above method?

    ReplyDelete
  2. Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. graphic design company in Bangalore

    ReplyDelete
  3. This Post is really supportive to all of us. Eager that these kind of information you post in future also. Thanks for Sharing Otherwise if anyone want To Learn SAS Training
    Oracle Apps Technical Training in Bangalore

    ReplyDelete