Download multiple files on one click

Hello Guys, I am trying to download multiple files from the aras innovator SP11. I have written javascript code. I am fetching all the files from the relationship and trying to download all at a time. Below is my code -
for(var i=0; i<array.length; i++){ var myFile = aras.getItemById("File", array[i], 0); aras.downloadFile(myFile,aras.getItemProperty(myFile, "filename")); }
By using this code it is downloading only one file. I have added loop and trying to download the all files. Any one have idea on it? What is the issue?    
Parents Reply Children
No Data