Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Aravindan.

Asked: May 01, 2020 - 11:48 am UTC

Last updated: August 27, 2025 - 2:52 am UTC

Version: 10g

Viewed 10K+ times! This question is

You Asked

I have to open a url having image and display from oracle forms in a separate browser window. Since the image will change for every transaction, the image should show in same window. My forms is running on Oracle EBS R12.

and Connor said...

The syntax for showing a web page from Forms is:

Web.Show_Document(URL, Target)


and target defines where you want that URL to be displayed.

If that target is already open, the subsequent calls should re-use the same window. You can even nominate a specific frame name if needed.

More details here

https://www.oracle.com/technetwork/developer-tools/forms/frmwebshowdoc-rep-128094.pdf

Rating

  (3 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

A reader, July 14, 2025 - 8:43 am UTC

But his call Blocked the JavaScript in the called URL.
While enableJavascriptEvent parameter in the formsweb.cfg is also true.
Connor McDonald
August 04, 2025 - 4:22 am UTC

To my knowledge, "enableJavascriptEvent" is about Javacsript integration between the form and its HTML parent, not whether a URL called by web.show_document can run javascript.

We'd need to see more details as to what you are trying to achieve here

Same Problem in 12c

Kashif, August 26, 2025 - 9:31 am UTC

I am currently using Oracle Forms 12c and facing the same issue when opening an external URL through a Oracle Form button using the following code:
Web.Show_Document(' http://url.com' );
The destination URL contains JavaScript that is expected to execute upon loading. However, when the URL is opened via Web.Show_Document, the JavaScript does not execute. On the other hand, if the same URL is accessed directly by pasting it into the browser’s address bar, the JavaScript runs successfully.
Connor McDonald
August 27, 2025 - 2:52 am UTC

This is normally an issue with browser trust (depending on the browser). It does not view the URL as being from a trusted site, and thus will not allow javascript to run.

Adding the Forms runtime URL to be a trusted site might help