Focal Point
[SOLVED] Naming CSV or XLSX files in InfoAssist

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

April 23, 2019, 09:52 AM
Doug
[SOLVED] Naming CSV or XLSX files in InfoAssist
What's the trick, if any, in Naming CSV or XLSX files in InfoAssist (Preferred) or App Studio?

Here's the results from Text Editing in App Studio, which is still not perfect:
-* Naming a CSV file results on 'WFServlet.csv'
ON TABLE PCHOLD AS 'My CSV File' FORMAT COMT
-* Naming a XLSX file results on 'my xlsx file': All lower case.
-*ON TABLE PCHOLD AS 'My XLSX File' FORMAT XLSX
Uncomment either of the PCHOLD lines and let me know your results if different than the AS 'Name' and what you did to accomplish that (Or a reference to a FM (FOCUS Manual)) Smiler.

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




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
April 24, 2019, 08:48 AM
Frans
Both are different CSV is all uppercase except the extension. XLSX all lowercase. Smiler


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
April 29, 2019, 01:57 PM
Doug
What I'm looking for is the ability to use 'My CSV File' intead ot 'WFServlet' from iwthing the PCHOLD line in the fex.

I can change it to whatever I want in a RC Job.
April 29, 2019, 02:40 PM
MartinY
Doug,
Look at your redirection settings for both type of file.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
May 07, 2019, 11:42 AM
Doug
So, this cannot be done, right?
ON TABLE PCHOLD AS 'MY_CSV_FILE' FORMAT COMT
as it will still use "WFServlet.csv" as the file name.
May 07, 2019, 11:59 AM
FP Mod Chuck
Doug

I don't see comt in the redirection settings so I doubt you can do it.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
May 07, 2019, 12:04 PM
MartinY
COMT format generates a .csv file which exist in Redirection Settings.

The following prompt me to save AAAAA file and I have both Redirect and Save Report set to Yes in redirection settings for .csv file
TABLE FILE CAR
SUM RETAIL_COST
BY COUNTRY
ON TABLE PCHOLD AS AAAAA FORMAT COMT
END



WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
May 07, 2019, 06:15 PM
Doug
Thanks,

So, this CAN be done! Smiler

TABLE FILE CAR
SUM DCOST BY COUNTRY
ON TABLE PCHOLD AS MY_CSV_FILE FORMAT COMT
END

Setting:                 Saves AS              
Save Report = yes   MY_CSV_FILE.csv
Save Report = no    WFSerlet.csv

~ Doug




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206