Focal Point
[SOLVED] File name when the user is saving a pdf output

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

July 21, 2009, 10:31 AM
rfbowley
[SOLVED] File name when the user is saving a pdf output
Run any report with the line:

ON TABLE PCHOLD FORMAT PDF

and, as we all know, the locally installed Adobe Reader pops open to display the report. The question is, when the user clicks on the 'Save' button, the default file name comes up as WFServlet.pdf.

Does anyone know if there is a way to change this default value?

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


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
July 21, 2009, 11:42 AM
Darin Lee
I have seen some posts about how to change that defaut file name for Excel files (because it pops up an error saying "There is already a file open with the name Wfservlet". You might try searching the forum to see if one of those suggestions will work.

Other than that, I can't think of any other way. What shows up in the borwser address box is http://servername/ibi_apps/WFServlet. By default, the reader is going to grab that last part as the file name when you push the save button.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
July 21, 2009, 11:44 AM
GamP
I have not seen or heard any other technique of changing the name than just typing it in at the adobe save prompt when the file is being presented to the user in a direct manner.
The only way I know of giving it a certain user defined name is to first hold the file on the server, and then present it to the user, ie to present it in an indirect way.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
July 21, 2009, 12:25 PM
GinnyJakes
I knew I had read this somewhere! You don't mention what release you have but I found this in the 7.6.7 Summary of New Features:

quote:
Preserving File Extensions and AS Names
PCHOLD has been enhanced to preserve file extensions and AS names using the Save
Report parameter in the mime.wfs file. When the Save Report parameter is enabled, users
have the option to open or save the report output. If an AS name is specified in the request
(for example, ON TABLE PCHOLD AS MYREPORT FORMAT PDF), the Save Report option allows
users to open or save the report with the specified name (MYREPORT.pdf).
The Save Report parameter can easily be enabled in the Redirection Settings window available
in the Configuration area of the WebFOCUS Administration Console, as shown in the following
image.

I didn't paste the image but I think this is what you want.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
July 21, 2009, 12:36 PM
Darin Lee
Funny you mention that, Ginny. I thought I had read something about that somewhere but when I tested it, it wouldn't work. Of course, I tested it in my current environment (7.1.6) instead of our new test env. (7.6.9).

Thanks for the reminder.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
July 21, 2009, 01:07 PM
Francis Mariani
If this works, it's one of the best New Features ever!


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
July 21, 2009, 01:30 PM
rfbowley
Fantastic. IF the client upgrades from 7.6.4, AND turns on the Save Report, I will have a happy end user.

Thank you all.


Robert F. Bowley Jr.
Owner
TaRa Solutions, LLC

In WebFOCUS since 2001
July 22, 2009, 05:19 AM
GamP
Oh my, I really should should start reading those snf booklets....


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988