Discussion
Virtusa
IN
Last activity: 4 Oct 2018 11:08 EDT
Is there any way we can show and hide busy indicator through activity?
Is there any way we can show and hide busy indicator through activity?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Likes (1)
S MANOJ KUMAR REDDY -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
IN
As this is not upgrade related question moving the post to Pega Platfrom > User Interface category.
Thanks,
Dhev
Pegasystems Inc.
US
pega.ui.busyIndicator is the main object - you can use the following code example to define the function and then use them in runscript action
var myappGlobal = {
busyIndicator: undefined
};
var showBusyIndicator = function () {
try {
if (pega.ui.busyIndicator) {
if (!myappGlobal.busyIndicator) {
busyIndicator = new pega.ui.busyIndicator("Loading", true);
}
myappGlobal.busyIndicator.show();
}
}
catch (e) {
}
}
var hideBusyIndicator = function (e) {
try {
myappGlobal.busyIndicator.hide();
}
catch (e) {
}
};
Intellativ
US
// myappGlobal is missing while setting busyIndicator object in ShowBusyIndicator function.
var myappGlobal = {
busyIndicator: undefined
};
var showBusyIndicator = function () {
try {
if (pega.ui.busyIndicator) {
if (!myappGlobal.busyIndicator) {
myappGlobal.busyIndicator = new pega.ui.busyIndicator("Loading", true);
}
myappGlobal.busyIndicator.show();
}
}
catch (e) {
}
}
// myappGlobal is missing while setting busyIndicator object in ShowBusyIndicator function.
var myappGlobal = {
busyIndicator: undefined
};
var showBusyIndicator = function () {
try {
if (pega.ui.busyIndicator) {
if (!myappGlobal.busyIndicator) {
myappGlobal.busyIndicator = new pega.ui.busyIndicator("Loading", true);
}
myappGlobal.busyIndicator.show();
}
}
catch (e) {
}
}
var hideBusyIndicator = function (e) {
try {
myappGlobal.busyIndicator.hide();
}
catch (e) {
}
};
-
Sudipta Biswas Arjun Avvaru
Murex
LB
Hi Ghanesh,
Please can you provide the correct solution for this issue. I'm facing same issue.
Blue Rose Technologies GmbH
DE
Through an activity we cannot enable and disable busy indicator. The busy indicator functionality is handled end to end by the JS side.
-
S MANOJ KUMAR REDDY
Pegasystems Inc.
IN
If you want to display busy indicator directly from an activity, you need to simullate a delay so that busy indicator kicks in automatically.
- On click of a button, call an activity.
- In the Activity, use a Java step with the below code:
try
{
Thread.sleep(5000);
}
catch (Exception e){}
Now the busyindicator appears and dismisses after 5s.
-
S MANOJ KUMAR REDDY