Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Save As Dialog

    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

    #2
    Originally posted by jasper
    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.
    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).

    Comment


      #3
      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.

      Comment


        #4
        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.

        Comment

        Working...
        X