Hey, that is pretty cool...  Gave me an idea, too...  Instead of hanging up
my Flex app while this report is generated, open a new tab or new window
that takes the user to a separate CF page that shows the progress of the
report's generation, and lets them download it when it's done.  That way,
they can switch back and forth without having to hang up the Flex app the
whole time...

Thanks!
L.

On Wed, Jan 26, 2011 at 3:09 PM, Eric DeCoff <[email protected]> wrote:

> This isn't the solution you are looking for...
>
> But I bet you can use his idea for your project
>
>
> http://www.webveteran.com/blog/index.php/web-coding/coldfusion/coldfusion-file-upload-progress/
>
>   On Wed, Jan 26, 2011 at 2:53 PM, Cameron Childress 
> <[email protected]>wrote:
>
>> 3 or 4 minutes is a long time to see a progress bar...  I know this
>> isn't answering the question you asked, but I would consider sending
>> the report request to the server and letting the user go on about
>> their business in the app.  Set a timer to ping the server and check
>> to see if the report is complete every 10 seconds or so - when it is,
>> visually alert the user that it's ready to be picked up and kill the
>> timer.
>>
>> QuickBooks Online Edition does this fairly well for a few "tax filing"
>> type things that have to interface with govt systems and can sometimes
>> take a real long time.  You submit the form, go about your business,
>> and then a little icon along the bottom of the QBOE page lights up to
>> alert you when the process is complete.  You can click the icon and it
>> brings you to the results page.
>>
>> -Cameron
>>
>> On Wed, Jan 26, 2011 at 2:34 PM, Laurence MacNeill
>>  <[email protected]> wrote:
>> > It's generating a report file to download, which can take 3 to 4 minutes
>> > before it's finished...
>> >
>> > L.
>> >
>> > On Wed, Jan 26, 2011 at 2:33 PM, Cameron Childress <[email protected]>
>> > wrote:
>> >>
>> >> What's the long running process doing?  I've used some CF
>> >> EventGateways and  producer/consumer classes to make this type of
>> >> thing async on the server before.  Potential scale issues may exist
>> >> with that solution though.
>> >>
>> >> -Cameron
>> >>
>> >> On Wed, Jan 26, 2011 at 1:58 PM, Laurence MacNeill
>> >> <[email protected]> wrote:
>> >> > I know that this is a Flex/Flash users group, but I'm hoping that
>> >> > someone
>> >> > here will know enough about ColdFusion 9 to answer this question...
>> >> >
>> >> > Is there a way to get a ColdFusion function in a .cfc file to throw
>> >> > events
>> >> > that a Flex program can read and act upon?  Not just the event that
>> gets
>> >> > thrown when it returns data or a fault-message, but something I can
>> use
>> >> > while the function is running to (for example) update a progress-bar
>> in
>> >> > my
>> >> > Flex program?
>> >> >
>> >> > Thanks,
>> >> > Laurence MacNeill
>> >> > Mableton, Georgia, USA
>> >>
>> >>
>> >> -------------------------------------------------------------
>> >> To unsubscribe from this list, simply email the list with unsubscribe
>> in
>> >> the subject line
>> >>
>> >> For more info, see http://www.affug.com
>> >> Archive @ http://www.mail-archive.com/discussion%40affug.com/
>> >> List hosted by http://www.fusionlink.com
>> >> -------------------------------------------------------------
>> >>
>> >>
>> >
>> >
>>
>>
>>
>> --
>> Cameron Childress
>> Sumo Consulting Inc
>> http://www.sumoc.com
>> ---
>> cell:  678.637.5072
>> aim:   cameroncf
>> email: [email protected]
>>
>>
>> -------------------------------------------------------------
>> To unsubscribe from this list, simply email the list with unsubscribe in
>> the subject line
>>
>> For more info, see http://www.affug.com
>> Archive @ http://www.mail-archive.com/discussion%40affug.com/
>> List hosted by http://www.fusionlink.com
>> -------------------------------------------------------------
>>
>>
>>
>
>
> --
> Eric R. DeCoff
> Changing the world,
> 1 line of code at a time
>

Reply via email to