In our application (which is currently running on 6.3 SP1),we are experiencing the spinning wheel(reload icon) appearing at different time intervals on different UI elements after an action is performed.(e.g. button click, refresh section etc.)
I would like to know
1.What's the default behavior for the reload icon(when will it appear in first place)
2.On which elements or events the reload icon is configured
3. What's the default time interval for spinning wheel(reload icon) appear after an action is initiated
4. Which attributes on UI element can make the reload icon to appear late than expected
***Updated by moderator: Marissa to close 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.
This is known as the busy indicator and is enabled/shown during dynamic UI updates. The PRPC user interface is very dynamic so end users and developers end up seeing the busy indicator all the time.
1.What's the default behavior for the busy indicator(when will it appear in first place)
When the UI dynamically updates we will enable the busy indicator until the update is completed. This done for dynamic updates that require a call to the server via an AJAX request, reload section, and finishing an assignment, submit and other button clicks. Since these requests are browser to server requests we enable the busy indicator as visual clue that the users requested action is being processed but also to stop further user actions while the dynamic UI update is being completed.
2.On which elements or events is the busy indicator configured
Listing all the elements or events would be a very large list. Simply any action that requires a browser to server interaction will/should show the busy indicator. (When using standard PRPC UI features)
3. What's the default time interval for spinning wheel(busy indicator) appear after an action is initiated
Great question, there is a coded default delay in showing the busy indicator. In PRPC 6.3SP1 the default delay is 2 seconds.
This function is used in the pega.u.d namespace to enable the busy indicator for core PRPC UI events. Notice there is an "ignoreInterval" parameter, if true the busy indicator displays immediately with no default delay.
This is the code for the pega.ui.busyIndicator.
4. Which attributes on UI element can make the busy indicator appear later than expected
As mentioned above there is a way to ignore the default interval to display the busy indicator. The reload event looks to ignore the default interval and this is used all over the place, reloadSection etc. I think what you might be seeing is an event that is using the default busyIndInterval of 2 seconds. I wont be able to tell you what event in the scope of this post.