Focal Point
[CLOSED] PCHOLD file name

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

September 12, 2018, 12:18 PM
jfr99
[CLOSED] PCHOLD file name
Hi All,

When I run the following code ...

SET EXCELSERVURL = ''
-*
TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE PCHOLD AS E01 FORMAT XLSX
END
-RUN


I get a dialog box asking me to Open/Save/Cancel my file. The file name is E01_20180912_110744.xlsx

Where does the Time Stamp in the name come from? Can this be changed?

Thanks

This message has been edited. Last edited by: FP Mod Chuck,


WebFocus 8.201M, Windows, App Studio
September 12, 2018, 12:32 PM
BabakNYC
I just ran your fex in 8203 and it automatically opened Excel and named the file E01.xlsx.


WebFOCUS 8206, Unix, Windows
September 12, 2018, 12:59 PM
Doug
I just ran your fex in 8202M Gen 60 and it prompted me to open E01.xlsx.

What is it that you are expected E01 to be? If you want it to be the literal of E01, then enclose it in single quote.

I'm thinking that it's trying to the field alias of E01 as weird as that would be.
September 12, 2018, 01:08 PM
jfr99
We are on 8201m ... Can someone else on that release give this a try and report your results? Thanks


WebFocus 8.201M, Windows, App Studio
September 12, 2018, 01:18 PM
jfr99
I want to name the file with only the date at the end but not the time. If I do this ...

SET EXCELSERVURL = ''
-*
TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE PCHOLD AS XYZ_&YYMD.EVAL FORMAT XLSX
END
-RUN


I get ... xyz_20180912_20180912_121709.xlsx


WebFocus 8.201M, Windows, App Studio
September 12, 2018, 01:30 PM
MartinY
Under 8201M gen 240 with
SET EXCELSERVURL = ''
TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE PCHOLD AS E01 FORMAT XLSX
END
-RUN

It result in an Open/Save/Cancel confirmation of E01.xlsx

With
SET EXCELSERVURL = ''
TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE PCHOLD FORMAT XLSX
END
-RUN

It result in an Open/Save/Cancel confirmation of "fexname"_"date"_"time".xlsx

With
SET EXCELSERVURL = ''
TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE PCHOLD AS E01_&YYMD.EVAL FORMAT XLSX
END
-RUN

It result in an Open/Save/Cancel confirmation of e01_20180912.xlsx


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
September 12, 2018, 01:53 PM
jfr99
Interesting ...

Our Build/GEN number is 193

When I run this (fex name = aa_tst01) ...

SET EXCELSERVURL = ''
-*
TABLE FILE CAR
PRINT CAR
BY COUNTRY
ON TABLE PCHOLD FORMAT XLSX
END
-RUN


I get this ... rleyo.xlsx


WebFocus 8.201M, Windows, App Studio
September 12, 2018, 02:54 PM
MartinY
gen 193 was my previous gen two weeks ago.

Maybe you should upgrade to gen240. Slight easy. Few click only and takes about 30-45 minutes to perform the client and AS upgrade.

But you may also have something else setup differently somewhere that cause this.


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
September 12, 2018, 03:30 PM
BabakNYC
Are you running this fex from an HTML Composer launch page?


WebFOCUS 8206, Unix, Windows
September 12, 2018, 04:31 PM
jfr99
I'm running it in App Studio. It does the same via an HTML launch page.


WebFocus 8.201M, Windows, App Studio
September 12, 2018, 04:35 PM
BabakNYC
The behavior I'm observing is that if I run the report from a Composer generated HTML page, it automatically appends date and time to the name of the fex. I've no idea how it does that. However, if I just run the report from app studio without composer, I get a generic name no date and time appended. I think if you open a case with IB Tech support they'll be able to explain what's going on. When you get an answer please share your findings here so we know.


WebFOCUS 8206, Unix, Windows