• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

Valence.util.download - callback function?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Valence.util.download - callback function?

    Is there a way to use a callback with the Valence.util.download function? I'm generating a spreadsheet (using Valence.util.download) that takes a little time to create and I'd like to display a friendly message to the user that disappears when the download is finished.

    Thanks,
    Eva

  • #2
    EvaY,
    could you not call a normal Ext.Ajax request to actually create your excel spreadsheet....and then in the callback of the ext.ajax request, call the Valence.util.download to actually download the spreadsheet.
    I am doing that in several instances and it works well.
    Code:
    Ext.Ajax.request({
       url: '/Valence/vvcall.pgm,
       parms: { whatever parms needed to create the spreadsheet},
       success: function() {
          Valence.util.download(....);
       }
    });
    Ryan

    Comment


    • #3
      Nice! I'll give it a try. Thanks!

      Comment


      • #4
        Great idea for a future newsletter tip! Thanks Ryan!

        Comment

        Working...
        X