Monday 25 February 2013

Add a URL on a page

We can add links to OAF pages using personalization. Keep in mind that links that are added on OAF pages via personalization can only access HTML pages that are located on $OA_HTML/***.htm pages that are located on the server file system on the middle tier/web tier.
In this example we shall add a link with the text, Service Readme, that will point to the URL, http://Oracle server:port/OA_HTML/serviceReadme.htm. This URL will open on a new web browser window when clicked.

Step 1: Enable the personalization links for OAF pages. You can refer to this article to see how to do this.
Login to Oracle and go to the iExpense page
You should see the Personalization links are enabled if Step 1 has been completed.

Personalization steps
 

There are 2 sections on this page, General Information Page and Additional Information. You can see individual personalization links for both these sections. We will add the link in the main section of the page, i.e. on General Information Page, under Create Expense Report: General Information heading.
Click on Personalize “General Information Page” as the field is part of the General Information Page section. You will be taken to the Personalization Structure page.

Click on Complete View radio button for viewing all the components on this section. Scroll down on the page.

Click on the Create Item icon on the General Information Page section.

The Create Item page will open.

On the Item Style dropdown select Link. Enter the following,
ID: Test_link
CSS Class: OraErrorNameText (This class will make the URL appear in Red)
Destination URI: serviceReadme.htm (This file should exist in $OA_HTML directory on the server)
Target Frame: _blank (This will open the URL in a new explorer page)
Text: Service Readme
Note: We can enter the following values in Target Frame,
  • _self
  • _blank
  • _parent
  • _top

Now the form will look like the following,

Click on Apply button. You will come back to Personalization Structure page. Scroll down.

Click on Return on Application link on the bottom left part of the page to go back to the iExpense page.

You can see the link named, Service Readme, on the page. Click on the link.

The HTML page opens in a new window.
We can change the location of the link Service Readme to the top of the section instead of the bottom. To do this we need to click on Personalize “General Information Page” link on the section again.

Click on Reorder icon on the General Information Page section.

The Reorder Contents page opens

Notice the Function section

The link named, Service Readme, is at the bottom. Click on the Up buttons () to move the link to the top. It should look like this,

Click on Apply and you will come to the Personalization structure page.

Click on Return to Application link to go back to the iExpense page.
You can now see that the Service Readme link (in red) has moved to the top of the section.

2 comments:

  1. is there any way to disable the link attached to the button

    ReplyDelete
  2. My spouse and I love your blog and find almost all of your posts to be just what I’m looking for. Appreciating the persistence you put into your blog and the detailed information you provide. I found another one blog like you OA Framework.Actually I was looking for the same information on internet for Oracle OAF and came across your blog. I am impressed by the information that you have on this blog. Thanks once more for all the details.

    ReplyDelete