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:

<body onload=”closeWindow()”>
<script type=”text/javascript”>
function closeWindow() {”,’_parent’,”);

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

[sql]–Call the html file created

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