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.
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.
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.