Search code examples
androidextjssencha-touchsencha-cmd

Sencha Touch Error...."has no method 'getId'"


I am getting this error, in my browser console, after running "sencha app run native testing":

Uncaught TypeError: Object [object Object] has no method 'getId'

When I look at the code in my browser I see this:

enter image description here

When I look at my own code for itemId of "foo3" I have this:

enter image description here

Could anyone tell me what I am doing wrong?

Sencha cmd 5.1.1.39 Sencha touch 2.4.1 Running with cordova 4.2.0

Thank you!


Solution

  • I finally rewrote the code so that I didn't have var view = Ext.create('.... instead I had Ext.define('... then I added:

     `var owningNavView = list.up('main'); 
      owningNavView.push({
      xtype : 'barFoo...'  });`
    

    For sliding to the next card.

    After that everything ran well with no errors.