1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    5
    Vote Rating
    0
    Answers
    1
    codeMagic is on a distinguished road

      0  

    Default Answered: Uncaught TypeError: Cannot read property '$inheritableStatics' of undefined

    Answered: Uncaught TypeError: Cannot read property '$inheritableStatics' of undefined


    I'm still new to ST and I'm sure this is something simple that I'm missing but I keep getting this error and can't figure out what it means or where it is generating from exactly
    Uncaught TypeError: Cannot read property '$inheritableStatics' of undefined

    I think it may be coming from my model

    Code:
    Ext.define('SenchaFirstApp.model.Equipment', {    extend: 'Ext.data.Model',    
          config: {
                idProperty: 'sn',
                fields: [
                  {name: 'label'},
                  {name: 'sn', type: 'auto'},
                  {name: 'category'},
                  {name: 'shield'}
                ]
            },
        
    });
    or from the view
    Code:
    Ext.define('SenchaFirstApp.view.EditEquipView', {
               extend: ['Ext.tab.Panel'],
              // extend: ['Ext.form.Panel'],
               requires: ['Ext.form.FieldSet'],
               model: 'SenchaFirstApp.model.Equipment',
               
               config:
               {
                centered: true,
                
                items:[
                       {xtype: 'fieldset',
                        items: [
                                {
                                    name: 'label',
                                    label: 'Label',
                                    xtype: 'textfield',
                                },
                                {
                                    name: 'sn',
                                    label: 'S/N',
                                    xtype: 'textfield',
                                },
                                {
                                    name: 'category',                //Add options
                                    label: 'category',
                                    xtype: 'selectfield',
                                },
                                {
                                    name: 'shield',
                                    label: 'Shield',
                                    xtype: 'checkboxfield'
                                },
                            ],
                       },
                       {
                           xtype: 'saveBtn'                            
                       },
                       ]
               }
               });
    this is my first time posting on here so hopefully I formatted it correctly. If not or if more information is needed, please let me know. The error could be coming from somewhere else but I suspect one of these guys. Thanks!

  2. Ok...I certainly am new! I had brackets around my 'extend' in the view. Just silly

  3. #2
    Sencha User
    Join Date
    Sep 2012
    Posts
    5
    Vote Rating
    0
    Answers
    1
    codeMagic is on a distinguished road

      0  

    Default Brackets

    Brackets


    Ok...I certainly am new! I had brackets around my 'extend' in the view. Just silly