Search code examples
coldfusioncfccoldfusion-11cfquery

Coldfusion cfquery realtime cfprogressbar


My function running query, its taking sometime depending on requested data. While query running, I want to show real query loading cfprogressbar & changing status/title while cfprogressbar doing progress. im still searching on google till now no luck all examples showing static time.

I was thinking if i can get real cfquery loading time & i'll pass that value to cfprogressbar. Please advise

  • coldfusion 11
  • windows 2012
  • cfprogressbar
  • cfquery

Solution

  • Unfortunately you can't show an accurate progress bar. The ColdFusion engine does not run your query, the database server runs your query and for that reason the ColdFusion engine does not know where your db server is at while running the query. You can show a 'spinner' if you want to let your user know that something is going on.