function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
surya prasad G Asurya prasad G A 

when we click on visualforce page tab in lightning app how to display the loading spinner

When we click on visualforce page tab in lightning app how to display the loading spinner
Jayant Kumar JaiswalJayant Kumar Jaiswal
Follow this link.
https://salesforce.stackexchange.com/questions/65580/popup-spinner-style-apexactionstatus

You can keep the spin function in constructor and remove the command button.
surya prasad G Asurya prasad G A
Hi Jayanth, Thank you for the response. When I have added the code it is not working when clicking on tab. When clicking on tab first it is displaying blank and after some time the page is loading with spinner.
Jayant Kumar JaiswalJayant Kumar Jaiswal
Sorry for previous suggestion.
Acutally the spin function in apex class is a method for which the user is waiting in the screen to execute.

What you need to do is to call whatever function you are executing in your case. In case you are navigating from one tab to another. There could be some sections in new tab which needs data to be populated. So, the function populating that data should be called from the page and the page will show this spinner till function executes and returns something.

Hope this helps.
stutistuti
Hi Surya, was wondering if you were able to achieve this since I am trying to accomplish the same?