Focal Point
ReportCaster saving an HTML report in a directory.

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

April 09, 2007, 07:59 AM
RickW
ReportCaster saving an HTML report in a directory.
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
April 09, 2007, 09:50 AM
Leah
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
April 09, 2007, 12:11 PM
Darin Lee
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
April 09, 2007, 01:01 PM
RickW
Darin, I think I'm just going to go the FTP route - Thanks.


WebFOCUS 7.6.6/TomCat/Win2003,SQL Server 2005,Oracle
April 09, 2007, 01:08 PM
susannah
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
April 10, 2007, 08:57 AM
RickW
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