Subscribe for automatic updates: RSS icon RSS

Login icon Sign in for full access | Help icon Help
Advanced search

Pages: [1]
  Reply  |  Print  
Author Topic: User Termination of reports  (Read 8154 times)
Gary C.
Posts: 109


« on: August 01, 2011, 10:10:50 am »

Hi

Can anyone suggest a method by which I can allow a user to terminate a report whilst it is being processed. Typically I do the following:

1. Get the user to enter the report criteria (customer range, date range etc)
2. Calculate the number of records to process
3. Start the report
4. Display a progress bar in a small form
5. Loop through the records, update the progress bar and output to the report
6. Finish the report

I have tried adding a cancel button to the progress window and monitoring int_flag within the foreach but of course there is no active dialog and so the cancel button is inactive.

Any suggestions/ideas would be very welcome.

Thanks
Gary

Bernard M.
Four Js
Posts: 45


« Reply #1 on: August 01, 2011, 11:54:33 am »

Hello,

You should have a look at our documentation, there is an example given how to deal with report interruption in the Reports Tutorial:

https://4js.com/online_documentation/fjs-fgl-manual-html/User/TutChap09.html#Interrupt

Regards,
Bernard
Gary C.
Posts: 109


« Reply #2 on: August 02, 2011, 11:18:29 pm »

Bernard
Thanks for the link - not sure how I managed to miss it! Anyway - all working now so thanks again.

Gary
Pages: [1]
  Reply  |  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines