Skip to main content
Known Participant
October 3, 2009
Question

Asking for patience

  • October 3, 2009
  • 2 replies
  • 907 views

I have several time-consuming reports to generate; unfortunately, my users are impatient and think that the report they request is not working, because they take a longer.

I have seen on other websites some indication, like a spinning hand in a clock or a bar showing progress or just words explaining that the report is being run; I have tried to have a message on the page, but when the request is submitted the page doesn't come up until the report is finished.

Is there some way I can interpose a page that will be on the screen so that I can let my users know that the report is being generated?

This topic has been closed for replies.

2 replies

Inspiring
October 7, 2009

You can do "clocks" and such with animated GIFs, but if your reports are taking "a long time" now, the only thing that you can be sure of is that they will soon take even more, ad infinitum.

Perhaps you can sell them on the idea that reports will be generated upon request and e-mailed to them.  Try to get beyond the notion of "instant gratification" with regard to reporting, because this produces a potentially-unlimited (and always, very repetitive) workload on the server.  You are not a hardware salesman . . .

Inspiring
October 3, 2009

Use an intermediate page.

Page 1 has the form

Page 2 validates the form data, converts all form variables to session variables, displays something, and cfincludes Page 3.

Page 3 produces the report.

Ken_Ford_-_ACP-QFo4AB
Inspiring
October 3, 2009

Can he use CFFLUSH?

http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_f_12.html#2130748

Ken Ford

Inspiring
October 3, 2009

The challenge with cfflush is that whatever you flush out initially stays on the page when everything else is there unless you do something to get rid of it.  And, getting rid of it might result in white space instead of having the rest of the page content coming back to the top.

Also, there are occasions where cfflush crashes the page because of the code that follows it.