Skip to main content
May 27, 2021
Question

Provide excel download functionality on button click.

  • May 27, 2021
  • 3 replies
  • 0 views

 I was using  plugin  getdatasubsetdownloadlinkfromprocess   to give export the data in excel to user on 1 click. Now its not working in 20.4.

I also used a!exportDataStoreEntityToExcel() function but this need to work on 2 clicks it work in saveInto. Can anyone suggest any other method to provide user the export of dynamic excel.

Thanks in advance

3 replies

mathieud0001
Brainy
May 27, 2021

Not possible unless you pre-generate the excel before the user lands on the page.

sahilb704Author
May 27, 2021

That's a report so I can't load the excel before that

mikes0011
Brainy
May 27, 2021

Your best bet is to plan on a 2-click approach.  The only way to do it with one click was that one specific (VERY OLD) plug-in which was horribly complicated and buggy.

The current ways (including Export DSE to Excel, and even the two deprecated smart services in the Excel Tools plug-in that provide various functionality not yet added to Export DSE...) are much easier and more reliable but do require one click to do the generation, populate a variable with the document ID, then display of a download link that the user must then click on.

The Expression Guru