Download excel file to the client using Java Action

1
Hi I need to export an excel file which I can do only with custom java action, because of the complexity of the file. So I'am using jexcel api to create the excel file. The file which is generated need to be downloaded immediately to the client, and that is my problem. How to make the file to be immediately downloaded to the client.
asked
1 answers
2

Steps:

  1. First create a filedocument in a microflow
  2. Call your jexcel javaaction and pass the new create filedocument.
  3. Use Core.storeFileDocumentContent to save your jexcel file contents to the filedocument.
  4. Commit it.
  5. Return that object as result from the javaAction
  6. Add a download action with that document
answered