If you are going to implement localization, internationalization or permissions mechanisms in your RIA, you will have to load the initial data and at the base of this data create appropriate GUI. In this post I will show you how to launch the application after all the global stores are loaded.

The loading process consists of 3 steps:

  1. load RIA: javascripts, css, images…
  2. load initial data (global stores)
  3. at the base of initial data launch the Viewport.

To achieve this goal I have extended the  ‘Ext.app.Application‘ class and added single listeners to the global stores. The initialization of the Viewport does not taking place because the ‘mainView‘ property is not set, instead I have called ‘setMainView‘ method after the load of all the global stores.

I have inserted the number of loaded countries in the titles of grids to show that the view is created after the stores are loaded.