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.
I have created a report that output in DBASE format. The issue is that the file is created on the server instead of the client machine. Can somebody help me find out how to do that.
Thanks in advance.This message has been edited. Last edited by: Kerry,
WebFocus 7.6.5 AND WebLogic server as web server sql2005 as database server
Posts: 273 | Location: Europe | Registered: May 31, 2007
Try ON TABLE PCHOLD if the file will be interactively created or FILEDEF if the file is to be automatically created.
- ABT
quote:
Originally posted by Majid Jeddi: Hi,
I have created a report that output in DBASE format. The issue is that the file is created on the server instead of the client machine. Can somebody help me find out how to do that.
An option if your WebFOCUS Client and Reporting Server are on the same box would be to have the WebFOCUS procedure create the file into a folder that woudl be accessable from the Web Server (there is usually a approot alias defined on the web server) say an output folder. Then use a script to create a zip file with the DBASE file inside of it. At the end of the webfocus procedure send the use back an html file with a link to there zip file. You'll want to be sure that each zip file and DBASE file are unique. And you will want to also perform some type of cleanup on that folder to delete the old DBASE files and Zip files.
i have edited the file mime on the server and prior to that i made a copy of it and added a line for DBASE. i went after the console and could see the changes i did. But this does not have any effect on the example you sent. Any other thing to check?
Thanks
Majid.
quote:
Originally posted by Waz: You can PCHOLD the dbase file, with some extra code.
TABLE FILE CAR
PRINT COUNTRY
ON TABLE HOLD FORMAT DBASE
END
-RUN
! DIR
FILEDEF DBF DISK hold.dbf
-RUN
SET HTMLFORMTYPE = DBASE
-HTMLFORM DBF
You will still have to set up mime types in the admin console.
WebFocus 7.6.5 AND WebLogic server as web server sql2005 as database server
Posts: 273 | Location: Europe | Registered: May 31, 2007
Note: I replaced some path-specific code with [..] You don't have to randomize the file name. We do it to eliminate the possibility of file saving 'collisions'
We are running Tomcat as our web server so we had to create a context document that points to the directory [..]/ibi/ibitmp [..]\ibi\tomcat\conf\Catalina\localhost\ibitmp.xml
just a quick hint on the HTMLFORM solution: Please be aware that WF (at least still in my 7.7.01 ver) performs some changes to the data stream provided in a HOLD file when "putting it out" using -HTMLFORM.
quote:
SET HTMLFORMTYPE = DBASE -HTMLFORM DBF
Btw.: In an MRE env. you might also want to add a -mrnoedit before the -HTMLFORM.
At least for me, this does not work for all binary files like PDF. I do not know the structure of DBASE files but if they contain binary code this might be true here, too. I believe -HTMLFORM interprets all data provided as "text with \n and a max. line length". Binary data as PDF files might not be returned "byte-exact" as the input was.
(E.g. tried with static PDF "WebFOCUS Special Newsletter Dec 2010" - did not work)
Therefore you might want to opt for the solution Dan proposed or you could wrap a base64 encoded version of your hold file (e.g. using powershell or java helper class) into an MHT file and use