Focal Point
SAVE A HOLD FILE ON PC
January 24, 2007, 10:31 AM
getitSAVE A HOLD FILE ON PC
Is there something I am missing here?. I am just trying to save a hold file onto C drive. It doesn’t matter what format it is in.
FILEDEF SAMPLE DISK C:\TEST\SAMPLE.pdf
-RUN
TABLE FILE CAR
PRINT MODEL
BY CAR
ON TABLE HOLD AS SAMPLE FORMAT PDF
END
-RUN
-EXIT
App Studio Version 8202
windows Platform
SQL Server 2008/2012
January 24, 2007, 10:40 AM
Jim_at_LMUse:
On the FILEDEF:
. . . SAMPLE.FTM
ON TABLE HOLD FORMAT ALPHA
Also:
Avoid "PDF" syntax in this setting since it probaly thinks you want to HOLD the data in PDF format.
WebFOCUS 7.6.11, WINDOWS, HTML, PDF, EXCEL
January 24, 2007, 11:01 AM
Francis MarianiOddly enough, this simple fex is causing me grief:
FILEDEF H001 DISK C:\TEMP\H001.FTM
TABLE FILE CAR
SUM SALES BY COUNTRY
ON TABLE PCHOLD AS H001 FORMAT ALPHA
END
I get the following pop-up from IE 6:
I guess this is because of the new secure world we live in.
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
January 24, 2007, 11:10 AM
RichHTry using APP HOLD
APP HOLD BASEAPP
TABLE FILE CAR
SUM SALES BY COUNTRY
ON TABLE HOLD AS H001 FORMAT ALPHA
END
This should create the file in the BASAPP folder.
Rich
WebFOCUS 8202 Win 2012
Test - WebFOCUS 8203 on Win 2012
January 24, 2007, 11:14 AM
Francis MarianiRich, thanks very much!!! That works fantastically!
Cheers,
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
January 24, 2007, 11:33 AM
mgrackinFrancis,
your original code gave you grief because you were doing a PCHOLD which sends the results to the browser. Notice in the code Rich posted the statement is a normal HOLD.
Thanks!
Mickey
| FOCUS/WebFOCUS 1990 - 2011 |
January 24, 2007, 12:27 PM
getitCan we not save a pdf on a c drive using filedef.?
FILEDEF SAMPLE DISK C:\TEST\SAMPLE.pdf
-RUN
TABLE FILE CAR
PRINT MODEL
BY CAR
ON TABLE HOLD AS SAMPLE FORMAT PDF
END
-RUN
-EXIT
App Studio Version 8202
windows Platform
SQL Server 2008/2012
January 24, 2007, 12:53 PM
mgrackinWhen you say "on the C: drive" do you mean the users C: drive or the C: drive of the WF SERVER?
To answer the first part, NO you cannot directly save a PDF document or any other type of document directly to the users C: drive.
To answer the second part, YES you CAN save a PDF document to the C: drive of the WF SERVER.
Use the example already posted but change the format to PDF. The only additional thing you will need to do is add the C:\TEST directory to the APP PATH.
APP MAP PDFSTORE C:\TEST
APP PREPENDPATH PDFSTORE
APP HOLD PDFSTORE
TABLE FILE CAR
SUM SALES BY COUNTRY
ON TABLE HOLD AS H001 FORMAT PDF
END
Thanks!
Mickey
| FOCUS/WebFOCUS 1990 - 2011 |
January 24, 2007, 01:34 PM
Francis MarianiMickey, oops! Of course, the HOLD would work!
PCHOLD used to behave differently as far as I can recall. In versions previous to 5.3, I think it displayed the file as text in the browser window.
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
April 09, 2007, 11:11 AM
getitThanks mgrackin,
your comment
To answer the first part, NO you cannot directly save a PDF document or any other type of document directly to the users C: drive.
was the answer to my question.
App Studio Version 8202
windows Platform
SQL Server 2008/2012