I have an issue regarding Downloading multiple pdf document

0
I am working on a functionality in which i want to download muliple pdf documents which is stored in pdf_report entity for different id’s selected by user. I retrieved the id’s which were selected by the user in for each loop and applied download activity but it is downloading pdf doc for first id selected ,  But I require muliple pdf doc for selected id ‘s. Please help me regarding this. This is latest microflow:   This is previous microflow:
asked
3 answers
1

I tried to replicate this, and it seems that the download file action only works for the last file in the loop. I've tried this on Mx 10.0 beta.

 

So if you have 3 files

a.pdf

b.pdf

c.pdf

 

you put them in a loop with download file. it will only download c.pdf. This seems like a bug or it is a limitation of the implementation.

 

Did some searching and found this thread:
https://forum.mendix.com/link/space/microflows/questions/109383

 

Seems like this is not the first time this came up. There is also an answer in there with a javascript action. 

So what you can do is create a nanoflow that calls your microflow as a submicroflow. Return the file docs from that sub microflow.

In your nanoflow add a javascript action, that looks like the one in the thread i linked. in that javascript action add the input parameter ‘fileDocumentList’ and select the entity you want to let the user download. And that should do the trick.

 

-Edit- I just tried that solution, it works.

answered
0

Hi Abhishek,

 

Looking at the latest microflow: In the loop, you use the ItterPatientList to retrieve a list of PDF_Report called PatientListList_1. You need to create a loop (in the loop) ittering over this list and download the files in that loop.

 

Go Make It.

answered
0

I have done these changes still not able to download multiple pdf’s , it is still downloading only for first id selected by user and not others.

answered