1104
Views
8
Comments
Solved
Downloading multiple pdf files
Question

Hello everyone,

I want to create a loop that involves creating and downloading multiple pdf files. The problem I've encountered is that the download action can only substitute an End node, and I'm not able to include it inside the loop.

I'm hoping that you can give me some suggestions on how to solve this or perhaps a workaround.

Thanks in advance,

Anna

2019-05-22 11-30-09
Marcelo Ferreira
Solution

Hi,

Zip the files is a option to you? 

You can check how to do it in here.

https://www.outsystems.com/forums/discussion/21345/how-to-use-zip-extension/

Or you can merge all the pdf's in one. You can use the forge component https://www.outsystems.com/forge/component/466/itextsharp/

Best Regards,

Marcelo

2020-12-18 10-43-19
Anna Lysek

Marcelo Ferreira wrote:

Hi,

Zip the files is a option to you? 

You can check how to do it in here.

https://www.outsystems.com/forums/discussion/21345/how-to-use-zip-extension/

Or you can merge all the pdf's in one. You can use the forge component https://www.outsystems.com/forge/component/466/itextsharp/

Best Regards,

Marcelo

Merging them all into one pdf isn't a solution in this case.

I've been trying to implement the Zip solution and I think it's finally working OK.

Thanks!

2024-01-05 16-00-17
Filipe Lourenço

If a zip file is not a solution you can loop through  your files and call a screen that ends up with a download file. You can pass an id as a parameter  ,load the binary data and go to download

UserImage.jpg
Carolina Gutierrez

Filipe Lourenço wrote:

If a zip file is not a solution you can loop through  your files and call a screen that ends up with a download file. You can pass an id as a parameter  ,load the binary data and go to download

how can call to another screen in a loop?


2021-11-12 19-06-12
Trevor

Carolina Gutierrez wrote:

Filipe Lourenço wrote:

If a zip file is not a solution you can loop through  your files and call a screen that ends up with a download file. You can pass an id as a parameter  ,load the binary data and go to download

how can call to another screen in a loop?


I would also like to know how this is possible. Calling another web screen within a loop has the same issue as calling the delete action directly. Both of those actions are considered end points for the web screen action and can't be placed in a loop.


2019-05-22 11-30-09
Marcelo Ferreira

Glad I could help.

Regards,

Marcelo

2019-05-22 11-30-09
Marcelo Ferreira

Hi Carolina and Trevor,

You can't call screens in a loop. If using a zip is not a solution for you let me know your requirements and we can think in a solution for your cases.

Regards,

Marcelo

2022-09-15 15-26-02
Leonardo Nascimento

Hi, Carolina.

You can implement a service, that returns a binary, you can call it inside the loop through js by passing a parameter through url and open in other page in browser each file


I hope help you


Regards,

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.