Hi Eva,
This is my situation. I will include the code also.
I have a HTML form that is used for accessing the reporting information from WebFocus.
After I have seen the reports, I click a button called 'Clean Up and Close' on the HTML form. When I click the button, it is supposed to execute a FEX procedure that would trigger a SQL stored procedure which will clean up the temporary reporting data on the temporary tables in SQL Server database. In addition to that, the HTML form needs to be closed. The user that clicked the button would not see anything on his screen except for the closing of the HTML form.
Now the HTML/Javascript code that I did for the 'Clean Up and Close' button:
<input type="button" value="Clean Up and Close" name="cmdReport" onClick="ExecuteFEX()">
function ExecuteFEX()
{
window.location.href = "///c:/cgi-bin/ibi_cgi/ibiweb.exe?ibif_ex=dpciin&ibiapp_app=(local)";
}
--Where 'dpciin' is the FEX procedure.
Now the 'dpciin' FEX procedure follows:
-* File DPCIIN.FEX
-* CALL THE SQL PROCEDURE TO TRUNCATE THE TABLES
-SET &TODAY=&YMD;
-SET &AJB = GETUSER(A8);
-TYPE USER &AJB
-TYPE &DATE
-SET &SESSIONID = &AJB || &TODAY || 'AAAAAAAAAAAAAAAAAAAAAAA';
SQL SQLMSS
EX GOA01_SQL.dbo.spgoa_dropusertables ,
'&SESSIONID';
END
- Now I want to close the HTML form from which I invoked the above procedure (In that form only, we had the button 'Clean Up and Close'. Can we do the coding of closing the HTML form in the above WebFocus procedure.
Thanks
Thambaiya