Hybrid View

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Posts
    73
    Vote Rating
    -1
    bstras21 is an unknown quantity at this point

      0  

    Default Launch function

    Launch function


    Hello, I am trying to reference one of my stores in my controller and it seems it's not loading at the time of the call. I am using

    Code:
    console.log(Ext.getStore('MyStore').count());
    but the result is 0

    If I tie it to a button handler an click it I get 10, so this is telling me it is not loaded yet in the controller. I looked at the docs and it seem there is a launch function that executes after the application, however this code does not run, any thought on how to access my store?

    Code:
     Ext.define('tapp.controller.MyController', {
            extend: 'Ext.app.Controller',
            views: ['MyApp'],
            stores: ['MyStore'],
            launch: function (){
                console.log('LLLLAAAUNCHEDDDD');
            },

  2. #2
    Sencha User
    Join Date
    Nov 2010
    Posts
    73
    Vote Rating
    -1
    bstras21 is an unknown quantity at this point

      0  

    Default Figured it out!

    Figured it out!


    Here is the function I used:

    Code:
            punchStore = this.getMyStoreStore();
    
                punchStore.load({
                scope   : this,
                callback: function(records, operation, success) {
                    console.log(records);
                    
                }
            });

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar