Focal Point
[CLOSED] Loading Page - Excel

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7287020096

April 25, 2018, 02:07 PM
WebFOCUS_Dev
[CLOSED] Loading Page - Excel
Hello

I am having issue with closing the window (tab) after processing of report.

There is a fex file with HTMLFORM as a loading page with a custom message before the report loads in the window.
For HTML, PDF there is no problem as report loads in the new tab. For excel, new tab opens and it stays open even after excel file is available for download.

Is there a way to close the tab after excel file is available for download?
-HTMLFORM BEGIN
<HTML>
<HEAD><SCRIPT TYPE="text/javascript">
function load(){
document.frm1.submit();
}
</script> </HEAD>
 <BODY BGCOLOR="WHITE" onload="load()">
 <form name="frm1" id="frm1" action="/ibi_apps/run.bip" method="get">
 <input type="hidden" name="BIP_REQUEST_TYPE" value="BIP_RUN">
 <input type="hidden" name="BIP_folder" value="IBFS:/WFC/Repository/FN/F_N">
 <input type="hidden" name="BIP_item" value="&FEX_NAME">
 <input type="hidden" name="WFFMT" value="&WFFMT">
 <FONT COLOR=BLACK><CENTER>Message </CENTER>
 </FORM>
 </BODY>
 </HTML>
-HTMLFORM END

Thank you.

This message has been edited. Last edited by: WebFOCUS_Dev,


WebFOCUS 8206
All formats
April 25, 2018, 02:36 PM
CoolGuy
This will add some light to your quest:

https://developer.mozilla.org/...Web/API/Window/close

If you're thinking of utilizing window.close(); to help you, you will only be able to use it if the window was opened first with a script as well. It's a security thing.

You may/may not be able to dynamically do this depending on what is happening in your scenario.

Good luck!


8.2.02M (production), 8.2.02M (test), Windows 10, all outputs.
April 25, 2018, 02:52 PM
WebFOCUS_Dev
quote:
Originally posted by CoolGuy:
This will add some light to your quest:

https://developer.mozilla.org/...Web/API/Window/close

If you're thinking of utilizing window.close(); to help you, you will only be able to use it if the window was opened first with a script as well. It's a security thing.

You may/may not be able to dynamically do this depending on what is happening in your scenario.

Good luck!


Thanks for the response.
I found this to close the tab (window) but I am unable to find an event which should trigger this. "Page load complete" event doesn't work.
That's my issue Smiler


WebFOCUS 8206
All formats
April 30, 2018, 05:23 PM
FP Mod Chuck
WebFOCUS_Dev

Please open a case with techsupport to get an answer for this.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats