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
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
Marcelo Ferreira wrote:
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!
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
Filipe Lourenço wrote:
how can call to another screen in a loop?
Carolina Gutierrez wrote:
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.
Glad I could help.
Regards,
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.
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