You will need to modify your main entry form procedure and place some javascript code to close the browser window.

1. Create a new html file i.e. “closeWindow.html”, under %ORACLE_HOME%\forms\java\ as below:

[html]<html>
<body onload=”closeWindow()”>
<script type=”text/javascript”>
function closeWindow() {
window.open(”,’_parent’,”);
window.close();
}
</script>
</body>
</html>[/html]

2. Modify the entry form’s POST-FORM Trigger

[sql]–Call the html file created
web.show_document(‘/forms/java/closeWindow.html’,’_self’);
EXIT_FORM(NO_VALIDATE)[/sql]

4. Add the following lines to your “formsweb.cfg” file under [your_cofiguration]
path = c:\Oracle\Middleware\user_projects\domains\<domain_name>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\formsweb.cfg

[text]<SCRIPT LANGUAGE=”JavaScript”>window.opener = top;</SCRIPT>
<HTMLbeforeForm=<SCRIPT LANGUAGE=”JavaScript”>window.opener = top;</SCRIPT>[/text]

 

To open see post 1071