he loop and then only call the desired method within it.
>
>
>
> /charlie
>
>
>
> *From:* ad...@acfug.org [mailto:ad...@acfug.org] *On Behalf Of *Ajas
> Mohammed
> *Sent:* Friday, March 25, 2011 11:29 PM
> *To:* discussion@acfug.org
> *Subject:* Re: [ACFUG Discuss
@acfug.org
Subject: Re: [ACFUG Discuss] cfloop query - whats best include page vs
cfhttp
Thanks all.
here is how I am using it now
Pseudo code:
instead of
Teddy, that should work the way you mentioned right, i.e. the processing of
one document will complete and cfloop with go to
Thanks all.
here is how I am using it now
Pseudo code:
instead of
Teddy, that should work the way you mentioned right, i.e. the processing of
one document will complete and cfloop with go to next record returned by
query and so on. I am just hoping the variables etc dont get messed up
bet
Thanks guys. Thats the feedback I was looking for.
Douglas, I tried cfhttp and I think you are right, it could lead to
issues.The last thing I want is first pdf creation gets hung meaning all
others dont work or dont get processed.
Teddy, the CFC approach sounds good. I really wanted one pdf crea
I've written something similar to this to schedule processes and make sure
we aren't killing the server during batch runs by running too many processes
in parallel. If there's a process to run, I invoke a component to run the
process. The component updates the db to show it is running. This is a
Ajas,
Whether you use cfhttp or not, you can use cfthread to make sure a
dependency order exists. With cfthread, you probably would not need a
sleep if set it up that the next thread cannot start until the first
one finishes.
I have not tried to just create a loop of threads over and over. I am
IMO, avoid the CFHTTP calls if you can, that opens a can of worms not easily
handled. eg, one call gets hung up and stuff hits the fan. Using CFPDF
direct means you can be more assured of trapping errors if any occur.
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?
On T
Teddy,
The logic and cfpdf/cfdocument stuff is already in place i.e. on the page
that needs to be called. I was thinking for 3 records returned, cfinclude
would mean, create pdf, sleep, then create pdf, sleep, and finally create
3rd pdf. Whereas if I do cfhttp, it will 3 separate processes or can
Ajas,
You can probably just or for your document
creation after you save the content of each query loop and create
whatever display logic you need.
As far as making aquery execute longer, try the sleep() function or
using cfthread with the sleep action.
Teddy R. Payne, ACCFD
Google Talk - tedd
Hi,
I am thinking of a CF schedule night 2 am job which will basically create a
pdf based of query data.
So first then and then question is
do i want to include this pdf creation page by using cfinclude or do I use
cfhttp call.
Also, I would like a sleep call between first record and every sub
10 matches
Mail list logo