Progress Bar
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
function onAction(event) {
// UI is updated only when the the loop is over; there is 1 round-trip server to client
for (var index = 0; index <= 100; index++) {
elements.bs_progressbar.value = index;
application.sleep(50);
}
}function onAction(event) {
// UI is updated at each iteration. There are 100 round-trip to server to client
for (var index = 0; index <= 100; index++) {
elements.bs_progressbar.value = index;
application.updateUI();
application.sleep(50);
}
}