Hi ,
I want to show a loading spinner while i navigating from 1 screen to another. I have a container where i have placed loader on the screen and contolling it with a boolean variable. But how to show before contents load.
Hi Sneha Kumari,
Use the If widget with the "Show" boolean variable by default as "True". In the true branch you can keep the loader and false branch you can keep the main content of the screen.
At the end of OnIntitialize client action or OnAfterFetch client action of the aggregates you can assign this boolean variable as "False" using the assign statement.
Like this, Here you can keep the "Show" variable with the default value as "True".
hope this helps!
Hi Sneha,What I have understood I am mentioning below, Please correct me if I am wrong.1.)You are trying to redirect from Page A to Page B.2.)And you added a loader on Page B.If this is the scenario then you need to add IF in the screen with the condition(check the aggregate or data action data is fetched or not) and if data is fetched then put your screen data in true and if data is still not fetched then in false condition add the loader.But if the transaction is smooth you will not be able to see the loader, if it is a requirement to show the loader in any condition then you need to handle the delay in the data fetch.Regards,Anubhav