cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Busy Indicator using APIs

devenderkumar-1
Explorer
0 Likes
576

Hi Experts , I want to know that how to use busy indicator by APIs as described in the documentation ,

Do we need to add a button and then add the script ?

or do need to add it somewhere else ?/

please brief me and if there is any example please mention that ,

it would be great

thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Susanne_Helbig
Product and Topic Expert
Product and Topic Expert
0 Likes

Dear devenderkumar,

please have a look at the developer handbook chapter 5.20.
You can either enable the busy indicator via the design panel, than the busy indicator is automatically shown in case a script runs longer than the time set in Loading Indicator Delay.
If you don't want to enable the busy indicator to always show up for long running scripts you can enable the busy indicator at the beginning of your script and disable it at the end. It doesn't matter if you trigger your script via a button or an event.

For example in our case, we enable the busy indicator by default and just change the shown text of the busy indicator at the beginning of the script (in this case the onInitialization event):

If you want to enable the busy indicator you just need to change the code to:

Application.setAutomaticBusyIndicatorEnabled(true); 
' perform your code
Application.setAutomaticBusyIndicatorEnabled(false); 

I hope this answers your question

Best regards
Susanne