Download Files Option for the application

How to Add Functionality to give a download option in application where user can download files like DOC, PDF.

Hi Ravi,

I'm not quite sure I understand what you mean. Do you want to allow the user to download files? If so, where are these files coming from?

Hi Ravi,

I will complement the questions Kilian did asking one very important thing. Is it a MOBILE or WEB application?
And what exactly is your requirement?

And, most important, did you the online training? ;)

In any case, if it is web, you execute a screen action and at the end of the screen action you replace the End node by a Download:

You have to give to it the binary (file content) and the file name.

If it is mobile, you can take a look here: https://www.outsystems.com/forums/discussion/27001/how-to-download-pdf-docx-xlsx-from-binary-in-db-to-mobile-app/

Cheers.

Hi Kilian,

Thanks for Reply.

File is Coming from customers and owner will download and Validate those files.

Kilian Hekhuis wrote:

Hi Ravi,

I'm not quite sure I understand what you mean. Do you want to allow the user to download files? If so, where are these files coming from?



Thanks Jauch,

Thanks for the information. it's really very helpful.


Eduardo Jauch wrote:

Hi Ravi,

I will complement the questions Kilian did asking one very important thing. Is it a MOBILE or WEB application?
And what exactly is your requirement?

And, most important, did you the online training? ;)

In any case, if it is web, you execute a screen action and at the end of the screen action you replace the End node by a Download:

You have to give to it the binary (file content) and the file name.

If it is mobile, you can take a look here: https://www.outsystems.com/forums/discussion/27001/how-to-download-pdf-docx-xlsx-from-binary-in-db-to-mobile-app/

Cheers.



Hi Ravi,

It seems to me your question is more about "how do I create a whole application for uploading, managing and downloading documents" then a specific question about how to do things in OutSystems? We can help you with the latter, but the former is more about application design, and out of scope for this forum.

Hi,

I have a similar problem, I need to open documents (pdf) that are on the internal network. The path to the document is in a database.
1 - in the server action "preparation" I get a list with the path and document name "\\ xxxx \ yyy \ zz.pdf"
2 - in a "modal" i list the result obtained in 1
3 - each record has a button that when clicked performs action 4 (next)
4 - action that executes a get to the registry clicked followed by a download with the option "Save to disk" = Yes

Problem:
when trying to open the document, it appears with the path "xxxxyyyzz.pdf", ie all "\" are removed.
I tried to duplicate the "\\" as well as replace "\" with "/ \" but without any result.

Can anyone help?

Thank you
Carlos Messias

Hi Carlos,

You don't have a similar problem I think, but a totally unrelated one. Next time, please start a new topic!

Hey I know this kind of a really silly question, but, I am unable to find the download  node. 

I need to use it in a web application to convert a HTML tag into PDF, I hope this is going to be possible with the download node. I need to extract a report from a container to a PDF page and also in excel. 

If someone differs with this view, or if this is not the right approach do get back to me as I am working on a product and looking for the best possible approach for this.

Please excuse in case you feel this is unrelated to this thread. :)


Yes, it is unrelated to this topic, but also what you want can't be done. There's no "converting" with the Download Statement, it's just downloading whatever binary you prepared. The Download Statement is only available in Screen Actions.