Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Gary C. on August 01, 2011, 10:10:50 am



Title: User Termination of reports
Post by: Gary C. 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



Title: Re: User Termination of reports
Post by: Bernard M. 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 (https://4js.com/online_documentation/fjs-fgl-manual-html/User/TutChap09.html#Interrupt)

Regards,
Bernard


Title: Re: User Termination of reports
Post by: Gary C. 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