Question
Instellars
SG
Last activity: 24 Feb 2020 6:03 EST
Busy Indicator not displaying
My requirement is to display busy indicator/loading icon while Activity is loading data from Database. On button click . It runs the activity directly which fetches all data from database and downloads pdf attachment . I want to display the busy indicator untill pdf attachment is downloaded.
I have gone through all the Pdn articles on busyt indicator but no use.
Could any one please help me out
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Can you run the below js code on button click and see if it helps.
<script> function showBusyInd(e) { var target = e.target; var sectionEle = $(target).closest('.modal-overlay#modalOverlay'); pega.u.d.gBusyInd._sNode = sectionEle[0]; pega.u.d.gBusyInd.show(null, true); setTimeout(function(){pega.u.d.gBusyInd.hide()}, 10000); } </script>
Instellars
SG
In which rule, should i use the above JS Code ? is it in Html rule?, then i should call the showBusyInd function in Run script in actions of the button is it?
Pegasystems Inc.
US
You can place the code in userworkform. And on button click run script and call showBusyInd
Updated: 21 Feb 2020 0:28 EST
Instellars
SG
Hi i created a Html Rule with above JS code.
Then referred showBusyInd in Runscript.
Busy indicator is not displaying in run time on click of button. should you suggest me if anything i have missed?
Pegasystems Inc.
US
Did this resolve the issue?
Instellars
SG
No Rachit
Pegasystems Inc.
IN
Hi Srikanth,
Can you keep an alert statement in the created function to check if this function is getting called or not?. If not keep the function in the userwork form and check the use-case again.
Pegasystems Inc.
US
Did you try to check if the script is even getting called in the first place?