Saturday, 17 August 2013

Is it possible to update text message in WL.BusyIndicator?

Is it possible to update text message in WL.BusyIndicator?

I create a new WL.BusyIndicator via this code just before I start a long
running process...
if (gblShowBusyIndicator) {
busyIndicator = new WL.BusyIndicator('loader',
{text: 'Refreshing local sales data...',
opacity: 0.85,
fullScreen: true});
busyIndicator.show();
}
Is it possible to update the "text" parameter intermittently during that
process? I tried calling this function, but it didn't work. Any ideas?
function setBusyIndicatorStatus(status) {
try {
if (busyIndicator.isVisible()) {
busyIndicator({text: status});
}
} catch (e) {
if (gblLoggerOn) WL.Logger.debug(">> setBusyIndicatorStatus(" +
status + ") failure... discarding");
}
}

No comments:

Post a Comment