We have a grid showing a list of .PDF documents stored on our IFS that our users would be able to retrieve,view and ultimately Print. The grid has a check box that we are using to flag which documents to retrieve. We have been successful in using the pui.download API to retrieve single documents, but when multiple documents are flagged for retrieval, only the first document is being retrieved. How would we be able to retrieve multiple documents and return them.
Attached is the .json for the screen.
invoking pui.download multiple times for items on Grid
-
- New User
- Posts: 2
- Joined: Fri Mar 11, 2016 3:47 pm
- First Name: Shamus
- Last Name: Johnson
- Company Name: Murphy Hoffman Company
- Phone: 8162426221
- Address 1: 4860 College Blvd
- City: Overland Park
- State / Province: Kansas
- Zip / Postal Code: 662111
- Country: United States
- Contact:
invoking pui.download multiple times for items on Grid
- Attachments
-
- PrintDocuments.json
- (13.29 KiB) Downloaded 592 times
-
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: invoking pui.download multiple times for items on Grid
I don't see any reference to pui.download() anywhere in the display file you posted?
Each time you run pui.download() it fires off a new process that runs a download. If you use inline:true, this will open in a new window -- so in that case, you can run as many as you like, they will all run simultaneously in separate windows.
I can't tell why your current design isn't working, since I don't see any calls to pui.download() in your code. I can only assume that you forgot to provide that part of the application for me to view?
Each time you run pui.download() it fires off a new process that runs a download. If you use inline:true, this will open in a new window -- so in that case, you can run as many as you like, they will all run simultaneously in separate windows.
I can't tell why your current design isn't working, since I don't see any calls to pui.download() in your code. I can only assume that you forgot to provide that part of the application for me to view?
-
- New User
- Posts: 2
- Joined: Fri Mar 11, 2016 3:47 pm
- First Name: Shamus
- Last Name: Johnson
- Company Name: Murphy Hoffman Company
- Phone: 8162426221
- Address 1: 4860 College Blvd
- City: Overland Park
- State / Province: Kansas
- Zip / Postal Code: 662111
- Country: United States
- Contact:
Re: invoking pui.download multiple times for items on Grid
Upon further testing, the additional windows were being suppressed by the pop-up blocker of our web browser. Once this was disabled, all of the selected documents were being appearing in their separate windows.
Who is online
Users browsing this forum: Google [Bot] and 0 guests