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     ReportCaster saving an HTML report in a directory.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
ReportCaster saving an HTML report in a directory.
 Login/Join
 
Platinum Member
posted
It's early and my brain may not be firing on all cylinders yet, but is it possible to generate an HTML report in ReportCaster and have that output saved to a folder? I’m not talking FTP but just a folder on a server. The report uses -HTMLFORM BEGIN/END, some DM looping to build the HTMTABLEs as well as some Javascript.

The only thing I could think of is to use TEMPPATH to get the reporting temp directory, build the HTML file by piping each of the files into a single file, and then DOS copying it into the directory. Kind of “hacky” but I think it will work.

Thanks.


WebFOCUS 7.6.6/TomCat/Win2003,SQL Server 2005,Oracle
 
Posts: 125 | Location: New England | Registered: February 20, 2007Report This Post
Virtuoso
posted Hide Post
I've never tried to save a report as format html, but have you tried a filedef to where you want to save and then append as needed.

FILEDEF xyz DISK ......

....
ON TABLE SAVE AS XYZ FORMAT HTML

...
FILEDEF XYZ DISK.... (APPEND

....
ON TABLE SAVE AS XYZ FORMAT HTML

Don't know what it would look like though.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Virtuoso
posted Hide Post
here's another idea. you could create a directory in the app path and using APP HOLD appname and ON TABLE HOLD AS htmname FORMAT HTMTABLE. This creates the tables you need in the app folder. Then you could have an HTML "shell" that resides whereever that references the HTMTABLEs created earlier. Content would be variable depending on what the data the procedure create in the HTM table, but the layout would be static with references to those tables. This isn't something I've tried, just an idea.
We actually use FTP here to do exactly what you're doing and it works great.


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
Platinum Member
posted Hide Post
Darin, I think I'm just going to go the FTP route - Thanks.


WebFOCUS 7.6.6/TomCat/Win2003,SQL Server 2005,Oracle
 
Posts: 125 | Location: New England | Registered: February 20, 2007Report This Post
Expert
posted Hide Post
Rick
you've probably gotten the idea already, from reading Leah and Darin. You can filedef and save the part you write with
FILEDEF MYTAB DISK \\servername\dirname\..\MYTAB.HTM
but all the extra styling you might chose to put between the -HTMLFORM BEGIN and END tags won't go along.
so..here's what we do here:
You can use -WRITE commands to write those shellcommands to a file on your server with a .asp extension

FILEDEF MYSHELL DISK \\servername\dirname\..\MYSHELL.ASP
then
-WRITE MYSHELL ...etc
and the statement you want to write to call your actual table is
-WRITE MYSHELL < !-- #include file="mytab.htm" -->

now when you user clicks on whatever links them to MYSHELL.asp, they'll get everything you want. Make sure, if youhave any drilldowns in your table that you have included in your fex the SET FOCEXECURL = HTTP://servername/ibi_apps/WFServlet (or whichever one you use)




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Platinum Member
posted Hide Post
Yup - the HTMLFORM items were the whole problem. I'm already using the HTMTABLEs that's why I was thinking I could just DIY by using the piping method.

It ended up there was a policy issue that was holding us from FTP. This is the faster/easier solution by far.

Thanks all.


WebFOCUS 7.6.6/TomCat/Win2003,SQL Server 2005,Oracle
 
Posts: 125 | Location: New England | Registered: February 20, 2007Report 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     ReportCaster saving an HTML report in a directory.

Copyright © 1996-2020 Information Builders