My Oracle Support Banner

How to Suppress the "Successfully Run" Message / Close Automatically the Browser Window (Doc ID 419201.1)

Last updated on JANUARY 11, 2024

Applies to:

Oracle Reports Developer - Version and later
Oracle Forms for OCI - Version and later
Information in this document applies to any platform.



The sample programs in this article are provided for educational purposes only and are NOT supported by Oracle Support Services.
They have been tested internally, however, and work as documented.
We do not guarantee that they will work for you, so be sure to test them in your environment before relying on them.


This note gives an example of how to close automatically the browser window when a report has been successfully run with a destype other than CACHE .

The Reports servlet always returns some data when a report is executed .

When DESTYPE=CACHE, these data are the output generated by Reports (It can be HTML / HTMLCSS / RTF / PDF / ...)

When DESTYPE<>CACHE or when the job is asynchronous (BACKGROUND=YES or SCHEDULE=xxx) , a message is returned about the "Oracle Reports Job Status"

This message is based on the template specified in the file with the property ERRORTEMPLATE.


By default, the template rwerror.htm is used.

(Even if the property name is ERRORTEMPLATE, this template is used when the job is successfull and is used too when you click on a job in the showjobs output)

It is not necessary to enter the path to the error message template when it is stored in the default template directory:



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.