learner
3rd March 2003, 16:23
Hi,
I have one customized session in which i am performing various tasks and then throwing data on the reports. what i would like to have is that as soon as task gets finsihed one by one there should be an indication on the Input form that a particular task is finished ...may be with a checkmark or with some label ...how do i go about it ?
when i use to do programming in vb , i use to do it with progress bar ( control ) ...how do i do it in BaaN, if progress bar is not there , simple checkmarks on the input form ..something like that.
zardoz
3rd March 2003, 16:34
Try:
bic_info6.1 ottstpprogress
it contains the following functions:
function extern long change.progress.indicator(
long perc.complete,
... )
function extern long create.progress.indicator(
const string title(),
long mode,
[ long with.reset ] )
function extern destroy.progress.indicator(
)
function extern long is.progress.indicator.stopped(
)
learner
3rd March 2003, 16:46
what is this bic_info6.1 ottstpprogress ?
How do i use it ??? Is it a function in DLL ?
Please guide me since i have only 2 months exp. in BaaN.
just give me a hint using code.
zardoz
3rd March 2003, 17:03
bic_info6.1 it's a binary that reveals all the external functions of a dll.
ttstpprogress is a DLL you can use in your programs.
the external functions are functions you can use.
At this moment I haven't any code - you have to try by yourself
:rolleyes: .
NPRao
3rd March 2003, 20:50
here is a simple example. you can add the tools library in the Libraries by Program Script or declare in the program script.
#pragma used dll ottstpprogress
long counter
e = create.progress.indicator("Counting...")
for counter = 1 to 1000
e = change.progress.indicator(0, "Counter = " & str$(counter))
endfor
destroy.progress.indicator()
mgakhar
4th March 2003, 01:54
Well the Progress Indicator is present in Baan V. Im not too sure if its available in Baan IV as well.
The easiest way to do this would be to have a display only form field at the bottom of your form with say the length of 100 chars.
Then as and when you finish a task, you can change the value of this field and do a display("field.name").
Another thing with using Progress Indicators is that it makes your program slow. So by using the above mentioned simple approach the performance of your program doesnt get any worse.
Manish.
NPRao
4th March 2003, 02:16
Alternatively you can use - status.mess() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_message_handling_status_mess)
shah_bs
4th March 2003, 03:41
Here's another option that you can try:
Let us say your process goes through three steps. Define three form variables, paint them on the form, and initialize them with whatever message that is indicative of the steps in the program script - init.form would be a good place. You will also need a step.number field.
Then before the first step, initialize the step.number (or whatever name you have chosen for the field) to say 1, and execute a display.all(). The before.display of step1 would be as given in the example below. (In fact, all three step fields will have identical code). Just before step two, initialize to step.number to 2 and do a display.all(), and so on.
field.step1:
before.display:
if step.number = 1 then
attr.cf = 4 | for Reverse
else
attr.cf = 0 | for normal
endif
It is not as sophisticated as a progress bar but not unpleasant either.
Hope this helps.
ahulikavi
4th March 2003, 05:27
You could also try
mess("Processing ... %d of %d completed..", 0, cnt, maxcount)
This would show this message on the status bar ...
You can replace "Processing %d of %d " with message code to make this easier to modify ...
hope this helps
Akshay
learner
4th March 2003, 07:17
Thanks all i will try it.