Create a file from a plugin

Confluence User - 17 Nov, 2017

I would like to

  1. implement a Datalist action plugin that generates a file and stores it on the server
  2. to be able to generate a link to this file and put it in a form using a custom html element (in order to allow a user to download it)

For what concerns the first point I've seen that the pdfAuditTrial plugin generates and saves a pdf file on the server, is it possible to see the source file of that plugin in order to understand how it performs this action?

plugins;file;download;datalists

6


17 Nov, 2017
confluenceUser
confluenceUser

Hi, this link might be helpful How to develop a Download PDF Datalist Action

17 Nov, 2017
confluenceUser
confluenceUser

Unfortunately this plugin is not storing the generated file server-side and therefore is not of help. I need to remotely store the file and than allow users to download it as many time as needed.

17 Nov, 2017
confluenceUser
confluenceUser

Yes the source code for that sample plugin is provided. It is essentially Java code so if you have Java expertise then you can modify it for your needs.

17 Nov, 2017
confluenceUser
confluenceUser

Thanks, but I cannot find the source code of the pdfAuditTrial plugin. Can you please give me the link, or the name of the package I should look for in the jw source code?

17 Nov, 2017
confluenceUser
confluenceUser

Scroll to the very end of the page to download the source code.

17 Nov, 2017
confluenceUser
confluenceUser

Thanks Walter, but I cannot find the source files at the end of the page (pleas put the link if you have it). I need This is the source file of this plugin: https://dev.joget.org/community/display/KBv5/PDF+Audit+Trail+Plugin Probably you are instead referring me to this plugin: https://dev.joget.org/community/display/KBv6/How+to+develop+a+Download+PDF+Datalist+Action If I understand well: - in the first plugin file are generated and stored on the server (And I imagine it is possibile to allow user to download them). - In the second the file is produced and given in response in the http request, it is not stored on the server for future download

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print