Focal Point
[CLOSED] ? FILEDEF Return Code

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

June 30, 2010, 02:34 PM
Watashi
[CLOSED] ? FILEDEF Return Code
I am on a Unix box. I have a detail to summary drilldown. The first time thru I do an
APP HOLD temp
FILEDEF HOLD_SOLD DISK /home/iadmin/ibi/apps/temp/hold_sold.fmt
FILEDEF HOLDMAST DISK /home/iadmin/ibi/apps/temp/hold_sold.mas
When I call the Summary Report I want to write to a file so when it calls the Detail again the HOLD file is already built. Problem is how do I do a ? Filedef each time to see if it exsist, what's the Return varialbe I can examine so I know whether to Jump over the Filedef or -READ it when the HOLD file exsist already. The Summary will write an amper so I know.

This message has been edited. Last edited by: Kerry,


7.7.02
Unix
HTLM
June 30, 2010, 02:53 PM
njsden
Search this forum for FOCAPPQ. That'll allow you to query you files using a regular TABLE FILE request; after that, a simple view at &LINES will tell you if the file is there or not.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
June 30, 2010, 02:54 PM
njsden
You could also attempt to -READ from the file and evaluate &IORETURN right after; it'll tell you whether or not an error was found.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
June 30, 2010, 03:27 PM
Francis Mariani
Look into "Foccache: Persistent Directory for Caching Files" in the Summary of New Features Version 7 Release 6.5 document.

quote:
When you want to be able to reuse data within the same browser session, you can store
the data in the form of a HOLD, SAVE, or SAVEB file in the foccache directory, which is
automatically created when the connection to the server is established. This becomes the
first directory in the application path.
As long as the browser session remains active, the stored files remain in the foccache
directory and can be referenced in requests using standard two part names. For example,
the first request below creates a HOLD file in foccache, which is referenced by the second
request:



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
June 30, 2010, 06:44 PM
Waz
You can use STATE to test for the existance of a file.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!