programmatic display and dismissal of a dialog while busy
I see from the documentation that roOneLineDialog has a ShowBusyAnimation method(). I effectively want to throw up a "Please wait..." (with busy animation) dialog while I am fetching things from my web API and parsing them. When finished parsing, I want to programmatically dismiss the dialog. I am having trouble getting this to work in code, and I do not see any programmatic method to make the dialog disappear. How can this be implemented in code? Could you please provide an example?
Re: programmatic display and dismissal of a dialog while bus
The dialog will stay on screen as along as the script holds a reference to the dialog object. So to dismiss the dialog set your reference to the dialog to invalid (or exit the scope of your automatic variable by returning from the function). For example: