1. #1
    Sencha User
    Join Date
    Dec 2011
    Posts
    2
    Vote Rating
    0
    jarnott is on a distinguished road

      0  

    Default Unanswered: Problem passing store name as var

    Unanswered: Problem passing store name as var


    This does not work...

    PHP Code:
    Ext.define('GeoCon.view.legislator.List', {
        
    extend'Ext.dataview.List',

        
    id'legislatorList',
        
    mystore'Legislators',
        
    config: {
            
    storethis.mystore,
            
    groupedtrue,
            
    emptyText'Loading list of Legislators...',
            
    itemTpl: [
                
    '<div class="legislator-list-item">',
                    
    '<span class="legislator-pic" style="background-image: url(http://www.govtrack.us/data/photos/{govtrack_id}-50px.jpeg);"></span>',
                    
    '{lastname}, {firstname} {middlename}',
                
    '</div>',
            ]
        }
    }); 

    This works...
    PHP Code:
    Ext.define('GeoCon.view.legislator.List', {
        
    extend'Ext.dataview.List',

        
    id'legislatorList',
        
    mystore'Legislators',
        
    config: {
            
    store:  'Legislators',
            
    groupedtrue,
            
    emptyText'Loading list of Legislators...',
            
    itemTpl: [
                
    '<div class="legislator-list-item">',
                    
    '<span class="legislator-pic" style="background-image: url(http://www.govtrack.us/data/photos/{govtrack_id}-50px.jpeg);"></span>',
                    
    '{lastname}, {firstname} {middlename}',
                
    '</div>',
            ]
        }
    }); 
    It seems to do the call the store properly, but it just does not display the list.
    No errors.
    sencha-touch-2-b3 and sencha-touch-2-b2

  2. #2
    Sencha User
    Join Date
    Dec 2011
    Posts
    2
    Vote Rating
    0
    jarnott is on a distinguished road

      0  

    Default


    This problem also shows up when configuring an xclass and passing the store by var.

    PHP Code:
     items: [
                        {                        
                                
    xclass'GeoCon.view.legislator.List',
                                 
    store:  this.mystore
                          
    }] 
    Makes it difficult to pass in different stores.

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