PSP and output filename

From: Tim Cross <tcross_at_nospam.une.edu.au>
Date: 28 Aug 2002 16:38:29 +1000
Message-ID: <877kibcwt6.fsf_at_blind-bat.une.edu.au>


[Quoted] I've just recently started looking at PL/SQL Server pages, which appear to provide some quick and easy web slutions for some of our needs. One thing which I managed to do in about 12 lines of code was create a PSP which would return a tab seperated file to the user which they can then either save to disk or open in an application, such as a spreadsheet.

this all works fine, except for one minor problem. The default filename presented in the "save or open" box of the browser has the same name as the PSP. What I would like is for the file to have an extension which more accurately represents the file type - in this example *.tsv.

If I was just using th web toolkit, I would create a package and create a procedure called tsv inside the package - this would then make the url something like http://host/pls/dad/package_name.tsv and the default filename at the browser end would become package_name.tsv. However, you cannot put PSPs into a package (unless you do it by hand, which sort of defeats using PSP).

Can anyone think of how this could be achieved? I tried using a parameter to the contentType-= setting, but that just caused errors.

The platform we are using is 8i (8.1.7), 9ias running under True64.

Tim

-- 
find / -iname microsoft -exec rm -rf {} \;
Received on Wed Aug 28 2002 - 08:38:29 CEST

Original text of this message