Wednesday, March 20, 2013

Launching Web Page From Oracle APPS Forms


We already know that OAF page can be launched from Oracle Applications PUI. We can also launch a web page or custom built html from Oracle Applications PUI. Below steps explains you on how to achieve the same.

Note: In 11i, we used to achieve this functionality by creating a FND function of type SSWA plsql function that opens a new window (Kiosk Mode) or SSWA plsql function. But from R12, these types should not be used. So we have to follow below procedure to launch a web page or custom html from Oracle Applications  PUI.

1) Create an .htm file calling the external link, for instance "xxpage.htm". 
<html>
<head>
<meta http-equiv="Refresh" content="0; URL=http://google.com">
</head>
</html>
or a custom html content
<html>
<body> 
<b>Our custom page</b>
</body>
</html>

2) Put this file under $OA_HTML directory. Check the permissions of the file

3) Go to System Administrator responsibility
4) Define a new fnd function as follows
- Enter function name and user function name 
- Function Type : 'JSP Interoperable with OA'
- HTML Call : xxpage.htm  

5) Search for the FND menu where you want to add access to our custom html. Add the newly created function to the menu with a proper name(displays in the navigator).

6) Clear cache and launch the page from Navigator. It's inevitable to clear the cache or else it raises a security exception upon launching the page.

Please let me know if I miss any points. I am happy to add here if it's relevant.

4 comments:

  1. Hi

    Thanks for your update, its very useful i have tried and working fine. But for my requirement the page should open in New Tab or New Window is it possible?? if so please guide me how to achieve it.

    In my case my launching Apex Application through Oracle Apps R12 so this application should open in new window without disturbing current Apps session. currently it is opening in same page.

    Thanks in Advance

    Regards,
    Mohanraj A R

    ReplyDelete
  2. Hi Mohan,

    Did you find solution for opening the page in new tab?

    Regards,
    Madhavi

    ReplyDelete
    Replies
    1. How to open external url in a new tab or in a new window?

      Delete