HI,
Is there a way in SmartGWT to show a “Save As” dialog when I click a Button?
So I can specify a name and file type and choose the directory where I can save a file.
Thanks
HI,
Is there a way in SmartGWT to show a “Save As” dialog when I click a Button?
So I can specify a name and file type and choose the directory where I can save a file.
Thanks
What’s the content you’re trying to save? The typical way to pop up a “save as” is to send an HTTP response with the MIME-type “application/octet-stream” from the server (but keep in mind that the user may prefer to have the file launch directly instead of forcing a save).
I am trying to export PDF or xls. I just need a way for the user to specify the location where to save the file.
Exporting as XLS, CSV, or other spreadsheet-style formats is demonstrated at the EE showcase.
I believe that to export as a PDF, you’d need to assemble the PDF server-side using something like Jasper and use a custom export setup, but don’t quote me on this part.