Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Loading Page - Excel

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Loading Page - Excel
 Login/Join
 
Platinum Member
posted
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
 
Posts: 95 | Registered: September 13, 2017Report This Post
Virtuoso
posted Hide Post
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.
 
Posts: 1113 | Location: USA | Registered: January 27, 2015Report This Post
Platinum Member
posted Hide Post
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
 
Posts: 95 | Registered: September 13, 2017Report This Post
Virtuoso
posted Hide Post
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
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Loading Page - Excel

Copyright © 1996-2020 Information Builders