Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Location
    Fort Lauderdale
    Posts
    15
    Vote Rating
    2
    bluewwol is on a distinguished road

      0  

    Default Combobox error on form load

    Combobox error on form load


    Hi,

    I hope I might get some help with what must be a really silly error. I have the following MVC setup that errors when the form loads and I just cant seem to figure it out. Any assistance would be hugely appreciated,

    with thanks,

    -Allen


    [MODEL CODE]Ext.define('ExtDesktop.model.emailTime', {
    extend: 'Ext.data.Model',


    fields: [
    {
    name: 'timeID',
    type: 'int'
    },
    {
    name: 'timeLabel',
    type: 'string'
    }
    ]
    });


    [/MODEL CODE]

    [STORE CODE]Ext.define('ExtDesktop.store.EmailTimeStore', {
    extend: 'Ext.data.Store',


    requires: [
    'Ext.data.proxy.Memory',
    'Ext.data.reader.Array',
    'ExtDesktop.model.emailTime'
    ],


    constructor: function(cfg) {
    var me = this;
    cfg = cfg || {};
    me.callParent([Ext.apply({
    model: 'ExtDesktop.model.emailTime',
    storeId: 'EmailTimeStore',
    data: [
    [
    1,
    'minutes'
    ],
    [
    2,
    'hours'
    ]
    ],
    proxy: {
    type: 'memory',
    reader: {
    type: 'array'
    }
    }
    }, cfg)]);
    }
    });
    [/STORE CODE]

    Code:
                                    {
                                        xtype: 'combobox',
                                        autoShow: true,
                                        padding: '0 0 1 0',
                                        width: 100,
                                        fieldLabel: 'Label',
                                        hideLabel: true,
                                        labelWidth: 75,
                                        name: 'cbTimeUnit',
                                        displayField: 'timeLabel',
                                        queryMode: 'local',
                                        store: 'EmailTimeStore',
                                        valueField: 'timeID'
                                    }

  2. #2
    Sencha User
    Join Date
    Jun 2009
    Location
    Fort Lauderdale
    Posts
    15
    Vote Rating
    2
    bluewwol is on a distinguished road

      0  

    Default


    I have a workaround by defining the store as an array in the Combobox itself, however based on all I read the MVC approach I was trying ought to work?? I still believe I am missing something pretty simple and would appreciate a pointer to the error in my ways,

    with thanks,

    -Allen

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Location
    Fort Lauderdale
    Posts
    15
    Vote Rating
    2
    bluewwol is on a distinguished road

      0  

    Default


    The more I try work through this the more frustrating it becomes,

    I have a simple example that does not work in the same manner as above, but based on my reading of the docs and examples it ought to be working. Any pointers would be appreciated.

    Code:
    Ext.define('ExtDesktop.store.rMonths', {    extend: 'Ext.data.Store',
    
    
        requires: [
            'ExtDesktop.model.Months'
        ],
    
    
        constructor: function(cfg) {
            var me = this;
            cfg = cfg || {};
            me.callParent([Ext.apply({
                autoLoad: true,
                model: 'ExtDesktop.model.Months',
                storeId: 'rMonthsID',
                proxy: {
                    type: 'ajax',
                    noCache: false,
                    url: 'http://localhost/data/months.txt',
                    reader: {
                        type: 'json'
                    }
                }
            }, cfg)]);
        }
    });
    
    Ext.define('ExtDesktop.model.Months', {
        extend: 'Ext.data.Model',
    
    
        fields: [
            {
                name: 'id',
                type: 'int'
            },
            {
                name: 'text',
                type: 'string'
            }
        ]
    });
    
    Ext.define('ExtDesktop.view.MyAboutPanel', {
        extend: 'Ext.panel.Panel',
        alias: 'widget.myaboutpanel',
    
    
        stateId: 'aboutPanel',
        height: 250,
        width: 400,
        frameHeader: false,
        header: false,
        title: 'My Panel',
    
    
        initComponent: function() {
            var me = this;
    
    
            Ext.applyIf(me, {
                bodyCls: [
                    'text-panel',
                    'x-panel-body-default'
                ],
                items: [
                    {
                        xtype: 'fieldcontainer',
                        height: 120,
                        width: 400,
                        fieldLabel: 'Label',
                        items: [
                            {
                                xtype: 'combobox',
                                fieldLabel: 'Label',
                                name: 'testCombo',
                                displayField: 'name',
                                queryMode: 'local',
                                store: 'MonthStore',
                                valueField: 'num'
                            }
                        ]
                    }
                ]
            });
    
    
            me.callParent(arguments);
        }
    
    
    });
    Again any assistance would be appreciated, as not being able to use a combobox is rather debilitating.

  4. #4
    Sencha User
    Join Date
    Jun 2009
    Location
    Fort Lauderdale
    Posts
    15
    Vote Rating
    2
    bluewwol is on a distinguished road

      0  

    Default


    I am such a bozo, the problem I encountered was that I did not update the app.js to include the model and store being used by the combobox, thus they did not exist when I loaded the form thus the error!!

    thanks to any and all who have have tried to assist with what is otherwise perfectly functional code.

    -Allen

Tags for this Thread