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.
I am trying to save the output of an html form to a web page on ashare folder. The form is generated in a Fex but only contains variables that are in Memory.
The code to create the storage folder works fine I am trying to get the form to save in the folder.
-DOS MKDIR \\Njfileshare\corpdocs\NonConformance\NonConformences\&KEY3
-HTMLFORM BEGIN
<HTML>
<HEAD>
<TITLE>Procedure Summary</TITLE>
</HEAD>
<BODY bgColor=#33ffff topmargin="0" leftmargin="0" >
<SPAN id=text7 style="BORDER-RIGHT: 1px solid; BORDER-TOP: 1px solid; Z-INDEX: 22; LEFT: 10px; VISIBILITY: visible; BORDER-LEFT: 1px solid; WIDTH: 560px; BORDER-BOTTOM: 1px solid; POSITION: absolute; TOP: 10px; HEIGHT: 50px; TEXT-ALIGN: center" tabIndex=0>
<a href="javascript:window.print()">Print This Page</a><BR>
<font size="7">Non Conformance Sheet<BR><BR>
Non Conformance # : &KEY3<BR>
<BR>
<img src="http://bcgen.com/demo/linear-dbgs.aspx?Barcode=&KEY3"><BR>
PO #: !IBI.AMP.F1;<BR>
Part #: !IBI.AMP.F2;<BR><BR>
<font size="3">Reject All: !IBI.AMP.F3;<BR>
Use as is: !IBI.AMP.F4;<BR>
Rework: !IBI.AMP.F5;<BR>
Damaged: !IBI.AMP.F8;<BR>
Out of Spec: !IBI.AMP.F9;<BR>
Description: !IBI.AMP.F6;<BR>
Inspector: !IBI.AMP.F7;<BR>
</SPAN>
</BODY>
</HTML>
-HTMLFORM END
-EXIT
PROD: WF 7.1.3 on Win 2003/IIS 6/Self-Serve & MRE TEST: We dont need no Stinking Test Server!
It looks like you want to save an HTML report in the specified directory. To do that hold the report as format HTML. -HTMLFORM is used to display HTML from a fex.
FILEDEF H001 DISK C:\temp\h001.html
-RUN
TABLE FILE CAR
PRINT
*
HEADING
"WEBFOCUS REPORT"
WHERE READLIMIT EQ 100
WHERE RECORDLIMIT EQ 100
ON TABLE HOLD AS H001 FORMAT HTML
ON TABLE SET PAGE NOLEAD
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLESHEET *
BORDER=1, BORDER-COLOR=SILVER,
FONT='ARIAL', SIZE=8, $
ENDSTYLE
END
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
If so, you could probably schedule it as a job with ftp output. You would just need to setup an ftp alias to the directory that you are trying to store the result to.
Windows: WF 7.6.2: SQL Server 2008 R2
Posts: 86 | Location: Chicago | Registered: August 03, 2007
wilky ... it seems you want everything between your -HTMLFORM BEGIN and END statements to be saved. FrankieMartini has taught you how to FILEDEF the output of a fex, the part that is referenced by !IBI.FIL.H001; but the surrounding html, won't be carried along with it. Can you write as much of that surrounding html in the fex itself? From your code it looks like a fex with all header rows would do it, plopping those &vars into the headers.. reading some dummy file, maybe with SET EMPTYREPORT=ON and TABLE FILE CAR HEADING ...lots of lines here PRINT CAR NOPRINT IF RECORDLIMIT EQ 1 -*- If for some reason not, i see 2 choices; 1. filedef a second file that will contain all the surrounding code and -WRITE to it. 2. have the surrounding code already made on the server saved as a .asp file, with a include statement that pulls in your fex-made-and-filedeffed H001.HTML; the include statement for an asp file is:
<!-- #include file="http:\...\H001.HTML" -->
and a .asp file is just a .html or .htm file that you have saved with a .asp extention, but i'm sure you already know all this bit.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
If you map your destination folder to an application name and then use APP HOLD to that application folder, you can get your HTML as you want to. -
APP MAP HTMOUTPUT C:\foldername\etc.
APP HOLD HTMOUTPUT
TABLE FILE CAR
SUM RCOST
DCOST
BY COUNTRY
BY CAR
BY MODEL
ON TABLE HOLD AS TESTHTM FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET PAGE NOLEAD
ON TABLE SET STYLE *
yourstyle statements
ENDSTYLE
END
-RUN
APP HOLD
You just need to create the fex that will give you the output you require, I would suggest achieving it entirely as a header.
... and I would suggest adopting a standard within your code by using all !IBI.AMP for your variables. You have not used it in the IMG tag for the barcode variable of &KEY3
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004