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     SAVE A HOLD FILE ON PC

Read-Only Read-Only Topic
Go
Search
Notify
Tools
SAVE A HOLD FILE ON PC
 Login/Join
 
Platinum Member
posted
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
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Gold member
posted Hide Post
Use:

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
 
Posts: 77 | Location: Baltimore | Registered: May 31, 2006Report This Post
Expert
posted Hide Post
Oddly 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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Try 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
 
Posts: 173 | Registered: November 16, 2005Report This Post
Expert
posted Hide Post
Rich, 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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
Francis,

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
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Platinum Member
posted Hide Post
Can 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
 
Posts: 183 | Location: TX | Registered: January 22, 2007Report This Post
Virtuoso
posted Hide Post
When 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
 
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003Report This Post
Expert
posted Hide Post
Mickey, 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
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Thanks 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
 
Posts: 183 | Location: TX | Registered: January 22, 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     SAVE A HOLD FILE ON PC

Copyright © 1996-2020 Information Builders