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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
MIME...HTML
 Login/Join
 
Member
posted
Simply put, I am trying to figure out how to get an HTML file (returned from WebFocus) to invoke the Windows Open/Save/Cancel dialog box. I realize that I could can change the Redirection Settings for the HTML file extension, however, I don't want the dialog box to be displayed for every page that is returned from WebFocus.

As an example, assume that th euser logs in to the web application and is presented with the GUI, as generated and returned from WebFocus. After performing all desired operations and manipulations, the user clicks download to receive the current report in HTML format (as opposed to xls and/or pdf formats).

I realize that the user can always click File/Save As... after the page is loaded regularly, however, I would like to circumvent that process.

Any ideas would be greatly appreciated.


WebFocus 7.6 client: WinXP server: Windows 2003 Server Edition
 
Posts: 15 | Registered: July 03, 2006Report This Post
Virtuoso
posted Hide Post
I may be missing something here, but the nature of the browser is to receive data in HTML format and display it. If you change the handling of HTML files, it changes for everything. You can't pick when you want HTML to be displayed versus saved. Whenever something comes back in the format the browser understands (HTML) it is just displayed. If you want to save that, the only option is to File/Save As like you mention.
Maybe someone out there has some technique ??


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Expert
posted Hide Post
I think this is what you're looking for:

TABLE FILE CAR
SUM SALES
BY COUNTRY
ON TABLE HOLD AS H001 FORMAT HTMTABLE
END
-RUN

-HTMLFORM BEGIN

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META name="Generator" content="EditPlus">
<META name="Author" content="">
<META name="Keywords" content="">
<META name="Description" content="">
</HEAD>

<BODY onLoad="document.execCommand('SaveAs',null,'report1');">

!IBI.FIL.H001;

</BODY>
</HTML>
-HTMLFORM END


Details here: http://www.faqts.com/knowledge_base/view.phtml/aid/8840/fid/53 and http://www.codefoot.com/javascript/script_invoke_saveas.html


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Member
posted Hide Post
Francis,

Plugging that code in via an invisible IFrame did exactly what I wanted it to. Thanks for the code.

I have one follow-up question for my own edification...is there a way in WebFocus to create a MIME file with the response type of "application/unknown"?


WebFocus 7.6 client: WinXP server: Windows 2003 Server Edition
 
Posts: 15 | Registered: July 03, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders