I guess application.updateUI() is necessary. Without that, the GUI and your progress bar will not be updated. You could do that every x times of an iteration only to not slow down your process too much.
patrick:
I guess application.updateUI() is necessary. Without that, the GUI and your progress bar will not be updated. You could do that every x times of an iteration only to not slow down your process too much.
Thanks Patrick - yes it looks like using it on say every 5th loop might be the answer.
In the past I think I’ve used a MOD() function but I cant see anything similar in Servoy - or something that will take the loop index and divide by 5, and be true if the result is an integer and not if its a decimal.
// update on every 5th item
application.updateUI();
}
Which is the JS equivalent of your MOD() function.
Very lovely thanks Robert! Just what I needed - and using every 5th loop extended the process time by only 10 seconds total which is acceptable - and I noticed any longer and the progress bar movement is too sluggish to be attractive - so looks like 5 is the magic number in this instance.
patrick:
I guess application.updateUI() is necessary. Without that, the GUI and your progress bar will not be updated. You could do that every x times of an iteration only to not slow down your process too much.
So the progress bar only will be updated in Smart Client, isn´t?
Any trick for use it in Web Client?
The JProgressbar bean is not web enabled so you can’t use it in Webclient. I guess you can create your own progressbar using HTML and a global field that you update every x times.