Question
merative
US
Last activity: 9 May 2024 4:19 EDT
Download Multiple zip files from List page on single click.
Hi
We have the requirement to download all the zip files on click on single button. While we are using the below function and we can be able to download single zip files from the last list of data page px results.
" String sMsg = tools.sendFile(AttachPage,"pyAttachStream",true,null,sFileName,false,null,true);".
Please suggest the way how we can achieve downloading the multiple zip files.
Java Function using :
try{
ClipboardPage AttachPage=tools.getStepPage();
String sFileName = AttachPage.getString("pxAttachName");
String sMsg = tools.sendFile(AttachPage,"pyAttachStream",true,null,sFileName,false,null,true);
if(!sMsg.equals("")) { oLog.infoForced("Exception sMsg not equal to space"); pega.terminateActivity();
} }
catch(Exception e){
oLog.error("Download attachment error: "+e);
}