I am trying to create a hold file and report from a single table request. This can be useful for creating and accessing an archive of all reports that have been run for a certain application, as well as for debugging fexes that have errors or need enhancements.
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
July 30, 2008, 10:15 AM
GinnyJakes
Do you have permissions to write to that particular directory? \WebFOCUSnn\basedir is the MRE application directory, belongs to the WF client not the reporting server, and is not written to by users per se but by the WF servlet under the auspices of the user. The other reason you don't want to put it there is that you would have migration issues when you upgraded.
TABLE FILE CAR PRINT CAR MODEL SEATS BY COUNTRY ON TABLE SET ONLINE-FMT HTML END <--- ON TABLE HOLD AS HCAR FORMAT PDF <--- -RUN -EXIT
Once execution encounters END, TABLE is gone ... so the "ON TABLE" following END will get a "command not recognized" error message.
In order to create two reports, you either need to make two passes through your data source -- or one pass with HOLD, and then two passes on the HOLD file. You can combine two passes against a single source (*) with
TABLE FILE xxx PRINT ... ... ... RUN <--- note: no hyphen [it's a FOCUS TABLE keyword, not a Dialog Manager directive. PRINT ... ... ... END
(*) I vaguely recall there was a new feature announced to allow creation of multiple outputs in a single pass. Anyone who knows more about that please chime in.)
- Jack Gross WF through 8.1.05
July 30, 2008, 04:40 PM
Tom Flynn
j.g.,
This is old functionality that was a bonus so we didn't have to go at the data source 2X.
The syntax above is incorrect, S/B:
APP HOLD FOLDERNAME
-RUN
TABLE FILE CAR
PRINT CAR MODEL SEATS
BY COUNTRY
ON TABLE SET ONLINE-FMT HTML
END
HOLD AS HCAR FORMAT PDF
-RUN
-EXIT
Now, you open Adobe, then migrate to DRIVE://ibi/apps/baseapp/hcar.pdf Works fine for me on 7.6.5, HOLDing in BASEAPP...
TomThis message has been edited. Last edited by: Tom Flynn,