Probably, I did not tell you properly what I wanted to say. From a HTML form, I am excutig a FEX procedure. At the end of the FEX procedure, I want to close this HTML form that invoked the FEX procedure. Basicaaly, I need to close the HTML form that executed the FEX procedure from the FEX procedure itself.
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()">
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.
How to close the HTML form window... I guess this should work:
1.) Give the HTML form window a name with JavaScript
var myName = 'anything';
window.name = myName;
2.) Transmit the windows name to the fex via a hidden field in the form and catch it in a JavaScript section in the FEX.
I’m not sure whether you need to do this. Try step 3 first and if it doesn’t work try transmitting the window name.
2.) Include some JavaScript at the end of your FEX that cleans up all the temporary data from the report and in the database:
[tt]
-HTMLFORM BEGIN
<script language="JavaScript">
myName.close();
self.close();
</script>
-HTMLFORM END
[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.