0
votes

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!

1
Have you tried setting your developer tools to pause on exceptions? It could be that there is different item that's causing this error. This will let you see which it is. - jprofitt
Why are using both id and itemId in your view config? - mindparse
@jprofitt yes I have tried that. mindparse just for testing purposes, I took them away and I still get the same error. - now_world
Have you tried item.id? - Dawson Loudon
@DawsonLoudon I have not, where would I add that in? thanks - now_world

1 Answers

0
votes

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.