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.
The problem with DOC and WP formats in WebFOCUS is you don't get formatting. And WP has that silly NULL as first character - a relic from MVS days.
Here is another technique that actually gets you a FORMATTED document.
In the FOCEXEC, but *before* your TABLE FILE, issue a FILEDEF like this:
APP FILEDEF MYDOC DISK MYAPP\MYDOC.DOC
where MYAPP is a WebFOCUS application folder and MYDOC is your filename.
Then, in your TABLE FILE request, issue a line like this
ON TABLE HOLD AS MYDOC FORMAT HTML
What happens is WebFOCUS outputs an HTML file with a DOC extension. Word can open this just fine (as long as you have Office or Word 97 or later) and all your formatting is preserved.
Hi, this creates a word document, however, due to the page eject, you get one blank page. The FILEDEF is one of our WebFOCUS directories we use as a mapped drive to get to information we save.
FILEDEF DDD DISK D:\FOCUS\UNO\QUALOUT\TEST.DOC TABLE FILE CAR PRINT MODEL BY COUNTRY ON COUNTRY PAGE-BREAK ON TABLE SAVE AS DDD FORMAT DOC END
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004
This topic comes close to something I need to accomplish. I need to have a formatted report open up in a browser window using the Word plugin.
The trick holding the output in html format does preserve the formatting, and gets me close, but our users would not have access to the doc file, hence the need to have it open in the browser.
Ok, Lets think out side the box. If the WebFOCUS Client and The WebFOCUS Reporting Server are on the save box and If holding it with format HTML give you what you want. Then you can hold/save the file to the directory that is define as the web server alias approot. Then at the bottom of the focexec add the following code.
-HTMLFORM BEGIN
<SCRIPT language="javascript">
<br />var gotopage = "/approot/temp/tempfile.doc";
window.location.replace
(gotopage);
</BODY>-HTMLFORM END
making it look something like this
FILEDEF OUTPUT DISK C:\ibi\apps\temp\tempfile.doc
TABLE FILE CAR<br />PRINT CAR MODEL BODY
BY COUNTRY<br />ON TABLE
HOLD AS OUTPUT FORMAT HTML
-HTMLFORM BEGIN<
<SCRIPT language="javascript">
<br />var gotopage = "/approot/temp/tempfile.doc";
window.location.replace(
gotopage);
-HTMLFORM END<br />-RUN<br />-EXIT
You may have to d o some additional coding to generate a unique hold file so one users file does not get written over by anothersThis message has been edited. Last edited by: <Mabel>,
I save the File as mentioned above and using Reportcaster, have it e-mailed to the user...where they can open it and save it where they want. You can also Filedef the report to a local drive, and just tell the user where it is...but I like the e-mail method.
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005