I am new to Flex. I devloped an application which will get Data from SAP xMII Query templates and load it in datagrid via HTTP Service.
The problem is on sometimes when it is getting slow to fetch the data and in Datagrid it is showing as empty grid. If we refresh the screen 2 to 3 times, it will get loaded.
I want to freeze the screen until the Datagrid is loaded. After it is loaded only, i want to show the screen.
How to do this?
Application.application.enabled = false;
Application.application.enabled = true;
Try enabling showbusycursor in httpservice definition and disable
or enable the application using
this.enabled by checking if cursor is busy. We can check this using cursormanager.
You can use a technique called deferred instantiation:
Also, you can have in your application model (either a Singleton or an injected instance) a variable that tells in which view state the application currently is. You can change the current state when the data has finished loading: