Bogdan
14th November 2001, 14:00
Hi,
I was wondering if there is a possibility to cancel the execution of a program script (for example a report who's taking a very long time) by pressing escape key during the execution of the scipt.
! I don't want to loose the lines allready processed by script !
This mean I must be able to print the report with partial data on it.
Thank you,
Bogdan
jroberts
16th November 2001, 20:43
There is no standard way that I know (except kill)
you could write code into your program script, that
asked the user every so many records, or so many minutes,
'Stop now or keep going Yes / No'
But that is fairly in-elegant.
John
PS, the flame answer is:
"Write more efficient scripts"
thank god you can't see some of the bad code I've written.
~Vamsi
17th November 2001, 00:36
John,
In BaanERP the concept you have outlined is used in creating "Progress Indicators". This has multiple options:
- pure text
- progress bar (with or without text)
- with stop / cancel buttons
The downside of this is performance degradation. They infact had to write a session to disable the progress indicators as an after thought.
I have seen in Baan IV dlls (back ported from BaanERP?) which seemed to house the progress indicator code... even though I have not seen any actual usage. Could someone validate this?
Bogdan
20th November 2001, 20:30
Hi,
Thanks for replys.
Yes, you're wright: write more eficient code :) , but as far as I know BaaN is very limited in this direction at least from the point of view of final user (do you know docs for embeded BaaN functions ? do you know how to control a table's records in a BaaN script ?
I'll give you the Fox or Paradox example (yes, yes, I know, it's like comparing a horse with a Ferrari :) ).
OK, let's go back to reality. My problem is that I'm using tfgld410 (a HUGE table) with some silly indexes (I don't know who's using these indexes and I can't add new ones). For the moment I solve the problem; it's working so-so.
But, let me reformulate my original thred: How can be done a deamon in BaaN ?
Thank you again.
MrMarco
4th December 2001, 13:27
Hi Guys!
I'm attempting to use the progress indicator in my Baan 5 script, but when compiling, I get the message 'Unresolved reference to function "create.progress.indicator"'.
Obviously, there is a library missing which contains the code, but where can I find this library? Anyone? Thanks!
:D
MrMarco
4th December 2001, 14:00
It's OK. I've found the library I wanted!
For anyone who's interested, in order to use the progress indicator, you need to include the line:
#include <bic_progress>
at the top of your program. This gives you access to the create.progress.indicator() function and associated routines.
Cheers!
~Vamsi
4th December 2001, 17:37
Also, there are a bunch of #defines in itcmcs2000 wrt progress indicators.