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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at myibi@ibi.com and provide your corporate email address, company, and name.
In this case I really want to save it in the browser.
PCHOLD AS TESTREPORT FORMAT EXL07
gives the right filename (testreport.xlsx) for the Excel, but for XML this is not working (@000020.xml).
We are scheduling these kind of reports in Reportcaster and giving them dymaic file names this way (ON TABLE PCHOLD AS &NAME FORMAT XML). If someone has a hint to dynamically populate a filename in the task, than that would be a good workaround as well.
It's like PCHOLD FORMAT EXL07, then the Excel file is send to the browser and there it will be shown in the browser or you get a "save as" depending on the redirection settings. So with saving in the browser, I mean getting the "save as" option in the browser.
The question is, how to get the right filename if you do that with XML.
Go to Client Administration Console and then Redirection Settings. Change the one for xml file from No to Yes for the Save option. You will be prompted for to save the result, then you can put your own file name.
Should do the trick
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
Posts: 2410 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Seems not possible to have your own defined file name with PCHOLD AS myFileName FORMAT XML except when using HOLD AS myFileName FORMAT XML PCHOLD XML usually used for "dynamic" control list values generation so, the name is not important
With the redirection properly setup, you are able to have the save prompt but not with your specified name which IMHO is not a show stopper
You may should open a case with TS and share the answer with us
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
Posts: 2410 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
thanks for your input. The reason we use this is that with this, we get a dynamic filename for emails in Reportcaster. This works for all formats except xml.
I'll have to look further to create a dynamic filename in Reportcaster.
I'm not sure what version of 8.2 you are usng but in 8.2.05 there are two redirection settings ("Redirect" and "Save As"). I can't compare earlier versions as I do not have them to hand but the following code gives me the option to download (save to browser ) as the correct filename.
TABLE FILE CAR
SUM RCOST DCOST
BY COUNTRY
BY CAR
ON TABLE PCHOLD AS TESTXML FORMAT XML
END
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004