how can i open all attachment once on click of button in Pega 7.2.1 version
I have a requirement to open all attachment once on click of a button in Pega 7.2.1 version.So i have created button in a section and called a activity on click of button. In that custom activity, where i do obj-browse to get pxLinkedRefTo and pzInskey from Link-attachment class. For each results i am looping the page and pass pzInskey value to Work-.GetAttachmentReference activity and pxLinkedRefTo value to Work-.DisplayAttachFile activity. But still i am unable to download the attachment to view.
I have also tried to using "doattachmentsrunscipt" function that seems to be working for one attachment but not sure how to utilize this for multiple attachment.
Could anyone of you, please help me to complete this requirement?
***Edited by Moderator: Pallavi to update platform capability tags***
I am successful to download one attachment by adding Refresh This section action in section and then invoke the custom activity. But the problem here is if i have 5 attachments, i able to view only the last attachment and rest are ignored. Do anyone have idea how to download all the attachments at a time? It would be great help
Can you show me anywhere else (outside of Pega application), where you are able to click on a button and download multiple attachments? It would be helpful to see what that UI looks like and inspect the markup.
What is your vision for how this will execute in terms of downloading all attachments at once?
For example, the only way I can see this being possible/useful is if you somehow looped over all of the attachments and zipped them up so that the download itself would be one file for the client to receive and consume. I imagine this implementation would require some custom java steps.
But I am curious if you had a different vision in mind?
I was thinking along the lines of what Rett suggested. If you've found a way to open multiple files and a way to download one, then all you need to do is that step in the middle to make them one file. I expect you are going to need to use Java to zip things up because I'm not aware of an OOTB way to do it.