Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User fabio.policeno's Avatar
    Join Date
    Sep 2010
    Location
    Curitiba - PR / Brasil
    Posts
    304
    Vote Rating
    5
    fabio.policeno is on a distinguished road

      0  

    Default Application do not get other attributes of the list

    Application do not get other attributes of the list


    Hello, I have my list set:
    Code:
    Ext.define('Touch.view.cliente.List' ,{
        extend : 'Ext.List',
        alias  : 'widget.clientelist',
        itemTpl: '{id} {nome}',
        store  : 'Cliente'
    });
    By using the application, nothing appears on the screen, no error on the console:
    Code:
    Ext.Loader.setConfig({
        enabled: true
    });
    
    Ext.application({
        name       : 'Touch',
        appFolder  : 'view',
        controllers: ['Cliente'],
    
        launch: function() {
            Ext.create('Touch.view.cliente.List');
        }
    });
    But it turns out it works:
    Code:
    Ext.Loader.setConfig({
        enabled: true
    });
    
    Ext.application({
        name       : 'Touch',
        appFolder  : 'view',
        controllers: ['Cliente'],
    
        launch: function() {
            Ext.create('Touch.view.cliente.List', {
                fullscreen: true,
                itemTpl      : '{id} {nome}',
                store        : 'Cliente',
            });
        }
    });

    That is, it includes the class, recognize your name / alias, but does not accept the other properties defined in the list, only if you set that works directly on the launch.

  2. #2
    Sencha - Services Team AndreaCammarata's Avatar
    Join Date
    Jun 2009
    Posts
    1,394
    Vote Rating
    22
    AndreaCammarata has a spectacular aura about AndreaCammarata has a spectacular aura about

      0  

    Default


    Hi Fabio.
    This is not a bug.
    In Sencha Touch 2 you should include all the additional components configuration inside the Config object like follows:

    Code:
    Ext.define('Touch.view.cliente.List' ,{
             extend : 'Ext.List',
    	 alias  : 'widget.clientelist',
    	 config: {
    		fullscreen: true,
    		itemTpl: '{id} {nome}',
    		store: 'Cliente'
    	 }
    });
    Hope this helps.
    Sencha Inc
    Andrea Cammarata, Solutions Engineer
    CEO at SIMACS

    @AndreaCammarata
    www.andreacammarata.com
    github: https://github.com/AndreaCammarata

    TUX components bundle for Sencha Touch 2.x.x
    http://www.tux-components.com/


  3. #3
    Sencha User fabio.policeno's Avatar
    Join Date
    Sep 2010
    Location
    Curitiba - PR / Brasil
    Posts
    304
    Vote Rating
    5
    fabio.policeno is on a distinguished road

      0  

    Default


    Hm. Now yes. Thank you!

Thread Participants: 1