aspose file tools
The moose likes GWT and the fly likes How to Generate a .CSV file on the client side and save it as download? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » GWT
Reply Bookmark "How to Generate a .CSV file on the client side and save it as download?" Watch "How to Generate a .CSV file on the client side and save it as download?" New topic
Author

How to Generate a .CSV file on the client side and save it as download?

Ron Meyer
Greenhorn

Joined: Jun 26, 2012
Posts: 7
Hi,

i try to allow the client to download the data he manipulated on the client side.
But i have no idea how i can pop up a "save export" dialog.


Can someone please explain how to do that?

The basic idea is, to use the data he entered, put a long string together and allow him to save this as download.
(The data is not available on the server)

Thanks
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9189
    
    2

As far as I know this won't be possible on the client side. The browser opens the Save dialog when it receives a response from the server with Content-Disposition set to attachment. I don't think this can be achieved using GWT (which internally uses javascript and javascript can't do this)...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to Generate a .CSV file on the client side and save it as download?
 
Similar Threads
JasperReports with GWT
Write file to a client system
print a report (client side)
Is there a panel that allows scrolling a really large image?
problem with download dialog box