Dec 08
Marc Pinnell Creating Multiple PDFs & Serving to User
Dec 08, 2015; 14:20
Marc Pinnell
Creating Multiple PDFs & Serving to User
Hey all,
Trying to create a series of PDFs that are forms with data pulled from a database. If I call a single entry, the PDF is created and downloaded as expected. However, if I try to step through a found set of entries, only the first one is generated and then.... well nothing else happens. I thought that web_response->sendfile was aborting the script, but I put in the -noAbort tag, so that should have fixed it, right? :) Running 9.2.7
Stepping through the entries like this:
with entryInfo in #eInfo do {^
var(reqEntry = #entryInfo(::allcifentrykey))
include('/_pages/admin-allcif-pdf.lasso')
^}
Then the PDF is built in that .lasso file. At the bottom of that file is:
//SAVE THE NEW PDF FILE
#base_form->save('/completed.pdf')
//SEND THE NEW PDF TO THE USER
web_response->sendFile(file('/completed.pdf'), #PDF_file_name, -type='application/pdf', -noAbort=true)
//ALL DONE WITH THE FILE - DELETE IT
local('file2delete' = file('/completed.pdf'))
#file2delete->delete
As stated, the first entry runs, but none of the subsequent files are generated. Help!
TIA,
Marc
Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Dec 09
Rick Draper RE: Creating Multiple PDFs & Serving to User
Dec 09, 2015; 08:38
Rick Draper
RE: Creating Multiple PDFs & Serving to User
Dec 08
Marc Pinnell Re: Creating Multiple PDFs & Serving to User
Dec 08, 2015; 14:42
Marc Pinnell
Re: Creating Multiple PDFs & Serving to User
Dec 08
Marc Pinnell Re: Creating Multiple PDFs & Serving to User
Dec 08, 2015; 14:44
Marc Pinnell
Re: Creating Multiple PDFs & Serving to User
Dec 08
Ke Carlton Re: Creating Multiple PDFs & Serving to User
Dec 08, 2015; 22:56
Ke Carlton
Re: Creating Multiple PDFs & Serving to User
Dec 09
Jolle Carlestam Re: Creating Multiple PDFs & Serving to User
Dec 09, 2015; 00:00
Jolle Carlestam
Re: Creating Multiple PDFs & Serving to User
Dec 08
Marc Pinnell Re: Creating Multiple PDFs & Serving to User
Dec 08, 2015; 15:04
Marc Pinnell
Re: Creating Multiple PDFs & Serving to User
Dec 08
Ke Carlton Re: Creating Multiple PDFs & Serving to User
Dec 08, 2015; 23:08
Ke Carlton
Re: Creating Multiple PDFs & Serving to User
Dec 08
Marc Pinnell Re: Creating Multiple PDFs & Serving to User
Dec 08, 2015; 15:08
Marc Pinnell
Re: Creating Multiple PDFs & Serving to User
Dec 08
Dave Bruhn Re: Creating Multiple PDFs & Serving to User
Dec 08, 2015; 18:17
Dave Bruhn
Re: Creating Multiple PDFs & Serving to User
Dec 09
Rick Draper RE: Creating Multiple PDFs & Serving to User
Dec 09, 2015; 09:24
Rick Draper
RE: Creating Multiple PDFs & Serving to User
Dec 08
Marc Pinnell Re: Creating Multiple PDFs & Serving to User
Dec 08, 2015; 15:30
Marc Pinnell
Re: Creating Multiple PDFs & Serving to User
Dec 09
Jolle Carlestam Re: Creating Multiple PDFs & Serving to User
Dec 09, 2015; 07:44
Jolle Carlestam
Re: Creating Multiple PDFs & Serving to User
Dec 09
Marc Pinnell Re: Creating Multiple PDFs & Serving to User
Dec 09, 2015; 07:15
Marc Pinnell
Re: Creating Multiple PDFs & Serving to User
Dec 12
Brad Lindsay Re: Creating Multiple PDFs & Serving to User
Dec 12, 2015; 14:54
Brad Lindsay
Re: Creating Multiple PDFs & Serving to User
Dec 12
Marc Pinnell Re: Creating Multiple PDFs & Serving to User
Dec 12, 2015; 13:38
Marc Pinnell
Re: Creating Multiple PDFs & Serving to User