1. #1
    Sencha User
    Join Date
    Jun 2012
    Posts
    20
    Vote Rating
    0
    nayak.kavya is on a distinguished road

      0  

    Default 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);
    }

    }

  2. #2
    Sencha User
    Join Date
    Jul 2012
    Posts
    148
    Vote Rating
    10
    Answers
    12
    pentool will become famous soon enough

      0  

    Default


    There's an excellent 4 part tutorial on creating a sencha app using lists and notes, saving/edit them etc.

    http://miamicoder.com/sencha-touch-tutorials/


Thread Participants: 1

Tags for this Thread