Soabirw
21 Apr 2012, 11:55 AM
Trying to get the NavigationView push/pop workflow smoothed out and I've run into some obstacles. Most I've managed to get through, but I'm not sure on this last one.
My first pop to the stack is a list of of items. If you select an item from the list it pushes the next view, passing in the data. You can also hit an "add" button to do the same, but with an empty data set. That part is working fine. When you click "back", using the built-in Navigation View back button, it takes you back to the first view with the item list just fine. Clicking 'Add' will push the next view again, however, clicking on a list item will not.
Instead I get an error:
Uncaught TypeError: Cannot read property 'args' of undefined
Ext.define.doFire sencha-touch-all-debug.js:17410
Ext.define.fire sencha-touch-all-debug.js:17345
Ext.define.doDispatchEvent sencha-touch-all-debug.js:22483
Ext.define.dispatchEvent sencha-touch-all-debug.js:22464
Ext.define.doFireEvent sencha-touch-all-debug.js:26712
Ext.define.fireAction sencha-touch-all-debug.js:26701
Ext.define.onItemSelect sencha-touch-all-debug.js:69091
Ext.define.doSingleSelect sencha-touch-all-debug.js:18873
Ext.define.select sencha-touch-all-debug.js:18843
Ext.define.selectWithEvent sencha-touch-all-debug.js:18762
Ext.define.onItemTrigger sencha-touch-all-debug.js:68977
Base.implement.callParent sencha-touch-all-debug.js:4546
Ext.define.onItemTrigger sencha-touch-all-debug.js:69593
Ext.define.doFire sencha-touch-all-debug.js:17418
Ext.define.fire sencha-touch-all-debug.js:17345
Ext.define.doDispatchEvent sencha-touch-all-debug.js:22483
Ext.define.dispatchEvent sencha-touch-all-debug.js:22464
Ext.define.doFireEvent sencha-touch-all-debug.js:26712
Ext.define.fireEvent sencha-touch-all-debug.js:26671
Ext.define.onItemTap sencha-touch-all-debug.js:69050
Ext.define.doFire sencha-touch-all-debug.js:17418
Ext.define.fire sencha-touch-all-debug.js:17345
Ext.define.doDispatchEvent sencha-touch-all-debug.js:22483
Ext.define.dispatchEvent sencha-touch-all-debug.js:22464
Ext.define.doFireEvent sencha-touch-all-debug.js:26712
Ext.define.fireEvent sencha-touch-all-debug.js:26671
Ext.define.onItemTap sencha-touch-all-debug.js:58551
Ext.define.doFire sencha-touch-all-debug.js:17418
Ext.define.fire sencha-touch-all-debug.js:17345
Ext.define.doDispatchEvent sencha-touch-all-debug.js:22483
Ext.define.dispatch sencha-touch-all-debug.js:17783
Base.implement.callParent sencha-touch-all-debug.js:4546
Ext.define.dispatch sencha-touch-all-debug.js:23208
Ext.define.doPublish sencha-touch-all-debug.js:23301
Ext.define.publish sencha-touch-all-debug.js:23215
Base.implement.callParent sencha-touch-all-debug.js:4546
Ext.define.publish sencha-touch-all-debug.js:23609
Ext.define.onRecognized sencha-touch-all-debug.js:23593
Ext.define.fire sencha-touch-all-debug.js:17844
Ext.define.onTouchEnd sencha-touch-all-debug.js:24552
Ext.define.invokeRecognizers sencha-touch-all-debug.js:23659
Ext.define.onTouchEnd sencha-touch-all-debug.js:23808
override.processEvent sencha-touch-all-debug.js:23880
Ext.define.onEvent sencha-touch-all-debug.js:23486
Base.implement.callParent sencha-touch-all-debug.js:4546
override.onEvent sencha-touch-all-debug.js:23876
method
I've tried resetting the list (deselecting, refreshing, etc) on the 'show' handler, but there was no change.
Here is a link to my Github project with the code: https://github.com/Soabirw/Debt-Count-Down/tree/master/DebtCountDown-SenchaTouch
(https://github.com/Soabirw/Debt-Count-Down/tree/master/DebtCountDown-SenchaTouch)
Any tips? Or am I misunderstanding push/pop all together, causing me more headaches than is necessary?
My first pop to the stack is a list of of items. If you select an item from the list it pushes the next view, passing in the data. You can also hit an "add" button to do the same, but with an empty data set. That part is working fine. When you click "back", using the built-in Navigation View back button, it takes you back to the first view with the item list just fine. Clicking 'Add' will push the next view again, however, clicking on a list item will not.
Instead I get an error:
Uncaught TypeError: Cannot read property 'args' of undefined
Ext.define.doFire sencha-touch-all-debug.js:17410
Ext.define.fire sencha-touch-all-debug.js:17345
Ext.define.doDispatchEvent sencha-touch-all-debug.js:22483
Ext.define.dispatchEvent sencha-touch-all-debug.js:22464
Ext.define.doFireEvent sencha-touch-all-debug.js:26712
Ext.define.fireAction sencha-touch-all-debug.js:26701
Ext.define.onItemSelect sencha-touch-all-debug.js:69091
Ext.define.doSingleSelect sencha-touch-all-debug.js:18873
Ext.define.select sencha-touch-all-debug.js:18843
Ext.define.selectWithEvent sencha-touch-all-debug.js:18762
Ext.define.onItemTrigger sencha-touch-all-debug.js:68977
Base.implement.callParent sencha-touch-all-debug.js:4546
Ext.define.onItemTrigger sencha-touch-all-debug.js:69593
Ext.define.doFire sencha-touch-all-debug.js:17418
Ext.define.fire sencha-touch-all-debug.js:17345
Ext.define.doDispatchEvent sencha-touch-all-debug.js:22483
Ext.define.dispatchEvent sencha-touch-all-debug.js:22464
Ext.define.doFireEvent sencha-touch-all-debug.js:26712
Ext.define.fireEvent sencha-touch-all-debug.js:26671
Ext.define.onItemTap sencha-touch-all-debug.js:69050
Ext.define.doFire sencha-touch-all-debug.js:17418
Ext.define.fire sencha-touch-all-debug.js:17345
Ext.define.doDispatchEvent sencha-touch-all-debug.js:22483
Ext.define.dispatchEvent sencha-touch-all-debug.js:22464
Ext.define.doFireEvent sencha-touch-all-debug.js:26712
Ext.define.fireEvent sencha-touch-all-debug.js:26671
Ext.define.onItemTap sencha-touch-all-debug.js:58551
Ext.define.doFire sencha-touch-all-debug.js:17418
Ext.define.fire sencha-touch-all-debug.js:17345
Ext.define.doDispatchEvent sencha-touch-all-debug.js:22483
Ext.define.dispatch sencha-touch-all-debug.js:17783
Base.implement.callParent sencha-touch-all-debug.js:4546
Ext.define.dispatch sencha-touch-all-debug.js:23208
Ext.define.doPublish sencha-touch-all-debug.js:23301
Ext.define.publish sencha-touch-all-debug.js:23215
Base.implement.callParent sencha-touch-all-debug.js:4546
Ext.define.publish sencha-touch-all-debug.js:23609
Ext.define.onRecognized sencha-touch-all-debug.js:23593
Ext.define.fire sencha-touch-all-debug.js:17844
Ext.define.onTouchEnd sencha-touch-all-debug.js:24552
Ext.define.invokeRecognizers sencha-touch-all-debug.js:23659
Ext.define.onTouchEnd sencha-touch-all-debug.js:23808
override.processEvent sencha-touch-all-debug.js:23880
Ext.define.onEvent sencha-touch-all-debug.js:23486
Base.implement.callParent sencha-touch-all-debug.js:4546
override.onEvent sencha-touch-all-debug.js:23876
method
I've tried resetting the list (deselecting, refreshing, etc) on the 'show' handler, but there was no change.
Here is a link to my Github project with the code: https://github.com/Soabirw/Debt-Count-Down/tree/master/DebtCountDown-SenchaTouch
(https://github.com/Soabirw/Debt-Count-Down/tree/master/DebtCountDown-SenchaTouch)
Any tips? Or am I misunderstanding push/pop all together, causing me more headaches than is necessary?