Focal Point
[CLOSED] Excel File Name Issue with PCHOLD Command

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

June 24, 2015, 12:08 PM
Glenn@VoyaIM
[CLOSED] Excel File Name Issue with PCHOLD Command
I'm trying to control the Excel file name when I save my report output using the following command:

ON TABLE PCHOLD AS BRS_Par_Treasury_Curves FORMAT XLSX

Unfortunately, WF8 automatically changes the file name to lower case and appends [1] to the end of the file name.

Is there an alternative command I can use to generate the precise file name that I want?

Thanks!

This message has been edited. Last edited by: Glenn@VoyaIM,


WebFOCUS 8
Windows, All Outputs
June 24, 2015, 02:42 PM
Francis Mariani
I don't think there's anything you can do about this.

The fact that you're actually able to name the Excel file is due to a redirection setting that's set via the Client Administration Console. The Save Report setting is set to "yes" for Excel files. The documentation states
quote:
2.Select yes in the Save Report drop-down list for the desired extension to prompt users in the browser to open or save report output. When Save Report is set to yes, the report output retains the AS name if specified in the request.
For example, specifying ON TABLE PCHOLD AS MYREPORT FORMAT PDF in a request and setting Save Report to yes for the .pdf extension enables a user to open or save the output as MYREPORT.pdf. The AS name specified is returned to the browser in uppercase. If Save Report is set to yes and no AS name is specified in the request, a random file name is generated.
I'm not sure why it's mentioned here that the file name will be in uppercase when you've experienced the reverse.

I'd open a case with Tech Support.


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 24, 2015, 03:44 PM
Glenn@VoyaIM
Francis,
Thanks very much for the response. Not the answer I was hoping for, but still helpful.

Regards,
Glenn


WebFOCUS 8
Windows, All Outputs
June 25, 2015, 10:33 AM
MAdams1
Try saving with format EXL07. This works for us in WF8.


WebFOCUS Server 8.1.05
Windows 2008 Server
WebFOCUS AppStudio 8.1.05
Windows 7 Professional
IE 11 and Chrome Version 43.0.2357.124 m.
Mostly HTML, PDF, Excel, and AHTML
June 25, 2015, 10:38 AM
Francis Mariani
Unfortunately, EXL07 does not have all the functionality of EXL2K. I'd like to have cell borders in EXL07, but this is not available yet.


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 25, 2015, 11:38 AM
Glenn@VoyaIM
MAdams1,

Thanks for the additional idea. I tried it out, but didn't have any luck. I suspect it is because we have a slightly different environment. I know, for example, that we're still running AppStudio 8.1.03.

Thanks,
Glenn


WebFOCUS 8
Windows, All Outputs
June 26, 2015, 12:01 AM
StuBouyer
I get Camel case but only when using Chrome.

Actually Chrome is also the only browser that doesn't force the (x) to the end of the file name when opening the file. I can get IE to NOT put the (x) on only if I save the file rather than opening.

This is with WebFOCUS 8.0.09 and IE 9 or Chrome 43.0


WebFOCUS 8.2.03 (8.2.06 in testing)