Unanswered: Getting the tapped list item and then going to a new screen
Unanswered: Getting the tapped list item and then going to a new screen
Hi,
I have the following ontap event for getting the selected list item and then navigating to a new screen.
Please correct me where I am going wrong in this.The condition is not working for me.
onItemtapmorelist : function(view, index, item,e) {
var record =Ext.getCmp('morelist').getStore().getAt(index);
if(record.get('name')=='Settings'){
var moredetails = Ext.create('Application.view.phone.SettingScreen', {
fullscreen:true
});
Ext.getCmp('morescreenph').push(moredetails);
}
else
{
var moredetailsapps = Ext.create('Application.view.phone.SettingScreen', {
fullscreen:true
});
Ext.getCmp('morescreenph').push(moredetailsapps);
}